Function at 0x4057f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x8c
mov ebp, dword [esp + 0xa0]
call fcn.00407ae0
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0
test eax, eax
mov dword [esp + 0x50], eax
je 0x4058bc
mov edi, dword [esp + 0x4c]
mov dword [esp], ebp
mov eax, dword [edi*8 + 0x498430]
mov dword [esp + 4], eax
mov dword [esp + 0x58], eax
call fcn.0041e710
mov edi, dword [edi*8 + 0x498434]
mov dword [esp], ebp
mov dword [esp + 4], edi
mov esi, eax
call fcn.0041e710
test eax, eax
jne 0x4058d0
add dword [esp + 0x4c], 1
cmp dword [esp + 0x4c], 3
jne 0x405824
mov eax, dword [esp + 0x54]
test eax, eax
je 0x405880
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0040e900
test eax, eax
je 0x4058bc
mov eax, dword [ebp + 4]
mov edx, dword [eax + 4]
cmp edx, 1
je 0x405c8f
cmp edx, 6
je 0x405bde
test ebx, ebx
jne 0x405c60
mov eax, dword [ebp + 4]
cmp dword [eax + 4], 2
je 0x405de5
mov eax, dword [esp + 0xac]
test eax, eax
je 0x405c6f
add esp, 0x8c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
test esi, esi
je 0x405858
mov ebx, dword [esi + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp], ebx
call fcn.004742f0
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 8], eax
mov dword [esp + 0x5c], eax
call fcn.0041ef20
mov edx, dword [esp + 0x24]
test eax, eax
je 0x405ee3
mov eax, dword [edx + 0x24]
mov dword [esp + 0x24], edx
mov esi, eax
mov dword [esp + 0x2c], eax
add eax, 1
mov dword [esp], eax
call fcn.004742f0
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], edx
mov dword [esp], ebp
mov dword [esp + 8], eax
mov dword [esp + 0x30], eax
call fcn.0041ef20
test eax, eax
je 0x405f25
mov esi, dword [esp + 0x54]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
test esi, esi
mov byte [eax + ecx], 0
je 0x405ea4
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x44], 0
lea ecx, [eax + ebx - 0xc]
add ebx, eax
cmp eax, ecx
mov edi, eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], ebx
jbe 0x4059c7
jmp 0x405b68
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
add eax, ecx
mov dword [esp + 0x44], eax
add edi, 0xc
cmp edi, dword [esp + 0x48]
ja 0x405b68
mov eax, dword [ebp + 4]
mov eax, dword [eax + 0x28]
mov dword [esp], edi
call eax
lea edx, [edi + 6]
mov esi, eax
movzx eax, byte [edi + 4]
mov ebx, eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 4]
mov eax, dword [eax + 0x34]
mov dword [esp], edx
call eax
lea edx, [edi + 8]
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 4]
mov eax, dword [eax + 0x28]
mov dword [esp], edx
call eax
test ebx, ebx
mov dword [esp + 0x3c], eax
je 0x4059a8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
add eax, esi
lea ebx, [ecx + eax]
xor ecx, ecx
cmp dword [esp + 0x2c], eax
jbe 0x405b10
mov dword [esp + 0x24], edi
mov edi, ecx
mov dword [esp + 0xa0], ebp
jmp 0x405a9f
lea ebp, [ebx + eax - 1]
cmp byte [ebp], 0x5c
jne 0x405aab
mov eax, dword [esp + 0x24]
lea esi, [eax + 0xc]
cmp esi, dword [esp + 0x34]
jae 0x405b83
mov eax, dword [esp + 0xa0]
mov byte [ebp], 0
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x28]
mov dword [esp], esi
call eax
add eax, dword [esp + 0x28]
cmp dword [esp + 0x2c], eax
jbe 0x405b91
add eax, dword [esp + 0x30]
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call fcn.004758b0
test edi, edi
mov byte [ebp], 0x5c
mov ebx, eax
je 0x405a99
mov dword [esp], edi
call fcn.0048d280
mov edi, ebx
mov dword [esp + 0x24], esi
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
test eax, eax
jne 0x405a30
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov dword [esp], ebx
mov ecx, esi
call fcn.004055c0
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0040e9a0
test eax, eax
jne 0x4059ba
call fcn.00405640
call fcn.00405580
jmp 0x4058bc
mov eax, dword [esp + 0x38]
mov ecx, edi
add edi, 0xc
sub ecx, dword [esp + 0x5c]
mov ebx, dword [ebp]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [esp + 0x58]
sar ecx, 0x1f
mov dword [esp + 8], ebx
mov dword [esp + 4], str._s:__s:_stab_entry__ld_is_corrupt__strx__0x_x__type___d_n
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
sar edx, 1
sub edx, ecx
mov dword [esp + 0x10], edx
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
cmp edi, dword [esp + 0x48]
jbe 0x4059c7
call fcn.00405580
mov eax, dword [esp + 0x5c]
mov ebx, 1
mov dword [esp], eax
call fcn.0048d280
jmp 0x405858
mov edi, eax
mov ebp, dword [esp + 0xa0]
jmp 0x405ab6
mov ecx, esi
mov eax, 0x2aaaaaab
mov ebp, dword [esp + 0xa0]
sub ecx, dword [esp + 0x5c]
imul ecx
mov eax, dword [esp + 0x58]
mov edi, dword [ebp]
sar ecx, 0x1f
mov dword [esp + 4], str._s:__s:_stab_entry__ld_is_corrupt_n
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
sar edx, 1
sub edx, ecx
mov dword [esp + 8], edi
mov edi, esi
mov dword [esp + 0x10], edx
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x405ab6
mov dword [esp + 4], 0x4983af
mov dword [esp], ebp
call fcn.0041e710
test eax, eax
mov esi, eax
je 0x405898
mov ebx, dword [eax + 0x24]
mov dword [esp], ebx
call fcn.004742f0
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], esi
mov dword [esp], ebp
mov dword [esp + 8], eax
mov edi, eax
call fcn.0041ef20
test eax, eax
je 0x4058bc
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00416140
test eax, eax
je 0x4058bc
mov dword [esp], edi
call fcn.0048d280
lea esi, [esi]
mov eax, dword [esp + 0x50]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp]
mov dword [esp], str._s:_no_recognized_debugging_information
mov dword [esp + 4], eax
call fcn.0041d6c0
add esp, 0x8c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa8]
lea ecx, [ecx + edx*4]
cmp dword [esp + 0xa4], ecx
mov dword [esp + 0x28], ecx
jae 0x405f42
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x2c], 0
mov dword [esp + 0xa0], ebp
jmp 0x405ce7
add esi, 4
cmp dword [esp + 0x28], esi
jbe 0x405e27
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x6c]
mov eax, dword [eax + 0x114]
mov edx, dword [esi]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 4], edx
mov dword [esp], ecx
call eax
cmp byte [esp + 0x70], 0x2d
jne 0x405cd0
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x405e5e
mov ebx, dword [esp + 0x74]
xor ebp, ebp
jmp 0x405d7c
lea eax, [esi + 4]
cmp dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
jbe 0x405d8b
mov dword [esp], ebx
call fcn.00476140
mov dword [esp], eax
mov edi, eax
call sub.msvcrt.dll_strlen
mov byte [edi + eax - 1], 0
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov dword [esp + 8], 0
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004758b0
mov dword [esp], edi
mov ebx, eax
call fcn.0048d280
test ebp, ebp
je 0x405d76
mov dword [esp], ebp
call fcn.0048d280
mov esi, dword [esp + 0x24]
mov ebp, ebx
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
cmp byte [ebx + eax - 1], 0x5c
je 0x405d22
movsx edx, word [esp + 0x7a]
movzx eax, byte [esp + 0x78]
mov ecx, dword [esp + 0x6c]
mov dword [esp], ebx
call fcn.004055c0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
movsx eax, word [esp + 0x7a]
mov dword [esp + 0xc], eax
movzx eax, byte [esp + 0x78]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0040e9a0
test eax, eax
je 0x405b00
mov ebx, 1
jmp 0x405cd0
mov edx, dword [esp + 0xa8]
test edx, edx
jle 0x4058ad
mov eax, dword [esp + 0x50]
mov dword [esp], ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 4], eax
call fcn.00419cd0
test eax, eax
jne 0x405c60
jmp 0x4058bc
mov ebp, dword [esp + 0xa0]
call fcn.00405580
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x405e53
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0040e900
test eax, eax
je 0x4058bc
mov eax, dword [ebp + 4]
mov edx, dword [eax + 4]
jmp 0x40588f
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0040e840
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x405d1a
jmp 0x4058bc
mov eax, dword [esp + 0xa8]
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call fcn.0040e840
test eax, eax
mov dword [esp + 0x54], eax
jne 0x40597b
jmp 0x4058bc
call fcn.00420a00
mov dword [esp], eax
nop
lea esi, [esi]
call fcn.00420a10
mov edx, dword [ebp]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x498341
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4058bc
call fcn.00420a00
mov dword [esp], eax
lea esi, [esi]
call fcn.00420a10
mov edx, dword [ebp]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
jmp 0x405f04
call fcn.00405580
jmp 0x405e53