summaryrefslogtreecommitdiff
path: root/asm
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2021-05-10 13:42:00 +0800
committerIru Cai <mytbk920423@gmail.com>2021-05-10 19:56:04 +0800
commit30d1c31bf84a20d2144dcd2fe5c615f759f21dc4 (patch)
tree5a1674e17cf2d4c51261962b40f6a3220634bc7e /asm
parent7e9a2ce9743ff7a585fea16181f5b13cb22c04e5 (diff)
downloadrich4-30d1c31bf84a20d2144dcd2fe5c615f759f21dc4.tar.xz
use msvcrt memcmp
Diffstat (limited to 'asm')
-rw-r--r--asm/rich4.asm29
1 files changed, 3 insertions, 26 deletions
diff --git a/asm/rich4.asm b/asm/rich4.asm
index f32e492..209004d 100644
--- a/asm/rich4.asm
+++ b/asm/rich4.asm
@@ -128,6 +128,7 @@ global fcn_0045709c
extern _memcpy
extern _strlen
+extern _memcmp
section .text
db 0xcc
@@ -106004,14 +106005,14 @@ loc_0045051b:
push 3
push ref_004660a8 ; push 0x4660a8
push ebx
-call fcn_00458599 ; call 0x458599
+call _memcmp ; call 0x458599
add esp, 0xc
test eax, eax
je short loc_00450543 ; je 0x450543
push 3
push ref_004660ac ; push 0x4660ac
push ebx
-call fcn_00458599 ; call 0x458599
+call _memcmp ; call 0x458599
add esp, 0xc
test eax, eax
jne short loc_0045054c ; jne 0x45054c
@@ -119013,30 +119014,6 @@ pop esi
pop ebx
ret
-fcn_00458599:
-push esi
-push edi
-mov ecx, dword [esp + 0x14]
-mov edi, dword [esp + 0x10]
-mov esi, dword [esp + 0xc]
-push es
-mov eax, ds
-mov es, eax
-xor eax, eax
-repe cmpsb ; repe cmpsb byte [esi], byte ptr es:[edi]
-je short loc_004585b7 ; je 0x4585b7
-sbb eax, eax
-sbb eax, 0xffffffff
-
-loc_004585b7:
-pop es
-pop edi
-pop esi
-ret
-
-endloc_004585bb:
-db 0x00
-
fcn_004585bc:
jmp near fcn_00459dc7 ; jmp 0x459dc7