From 30d1c31bf84a20d2144dcd2fe5c615f759f21dc4 Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Mon, 10 May 2021 13:42:00 +0800 Subject: use msvcrt memcmp --- asm/rich4.asm | 29 +++-------------------------- 1 file 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 -- cgit v1.2.3