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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebp, dword [esp + 0xa0]
call fcn.00408a00
test eax, eax
mov dword [esp + 0x54], eax
je 0x406814
mov dword [esp + 0x4c], 0x4b7a6c
mov esi, 0x4b7981
mov dword [esp + 0x50], 0x4b798a
mov dword [esp + 0x58], 0
xor ebx, ebx
mov eax, dword [esp + 0x50]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0042aaf0
mov dword [esp + 4], esi
mov edi, eax
mov dword [esp], ebp
call fcn.0042aaf0
test edi, edi
je 0x4067bf
test eax, eax
mov dword [esp + 0x24], eax
jne 0x4068b2
add dword [esp + 0x4c], 8
mov edx, str.debug_get_real_type:_circular_debug_information_for__s_n
mov eax, dword [esp + 0x4c]
cmp edx, eax
je 0x406821
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov dword [esp + 0x50], ecx
jmp 0x406791
call fcn.00423da0
mov dword [esp], eax
call fcn.00423db0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], eax
mov eax, dword [ebp]
mov dword [esp + 4], 0x4b7990
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
add esp, 0x8c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40683d
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.0040f780
test eax, eax
je 0x406814
mov eax, dword [ebp + 4]
mov edx, dword [eax + 4]
cmp edx, 1
je 0x406bec
cmp edx, 6
je 0x406d59
test ebx, ebx
jne 0x4068a3
mov eax, dword [ebp + 4]
cmp dword [eax + 4], 2
jne 0x406bbd
mov edx, dword [esp + 0xa8]
test edx, edx
jle 0x406bbd
mov eax, dword [esp + 0x54]
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.0041af30
test eax, eax
je 0x406814
mov eax, dword [esp + 0x54]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [edi + 0x24]
mov dword [esp], ebx
call fcn.004a91f0
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [esp], ebp
mov dword [esp + 0x5c], eax
call fcn.0042b380
test eax, eax
mov edx, dword [esp + 0x24]
je 0x4067dc
mov eax, dword [edx + 0x24]
mov dword [esp + 0x24], edx
mov edi, eax
mov dword [esp + 0x2c], eax
add eax, 1
mov dword [esp], eax
call fcn.004a91f0
mov edx, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp], ebp
mov dword [esp + 4], edx
mov dword [esp + 0x30], eax
call fcn.0042b380
test eax, eax
je 0x406ea0
mov esi, dword [esp + 0x58]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
test esi, esi
mov byte [eax + ecx], 0
je 0x406e60
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x44], 0
lea edx, [eax + ebx - 0xc]
add ebx, eax
mov edi, eax
mov dword [esp + 0x34], ebx
cmp eax, edx
mov dword [esp + 0x48], edx
jbe 0x40699d
jmp 0x406b40
mov edx, dword [esp + 0x44]
add eax, edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x44], eax
add edi, 0xc
cmp edi, dword [esp + 0x48]
ja 0x406b40
mov eax, dword [ebp + 4]
mov dword [esp], edi
call dword [eax + 0x28]
mov esi, eax
movzx eax, byte [edi + 4]
lea edx, [edi + 6]
mov ebx, eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 4]
mov dword [esp], edx
call dword [eax + 0x34]
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 4]
lea edx, [edi + 8]
mov dword [esp], edx
call dword [eax + 0x28]
test ebx, ebx
mov dword [esp + 0x40], eax
je 0x406982
mov eax, dword [esp + 0x28]
xor edx, edx
mov ecx, dword [esp + 0x30]
add eax, esi
cmp dword [esp + 0x2c], eax
lea ebx, [ecx + eax]
jbe 0x406ae0
mov dword [esp + 0x24], edi
mov dword [esp + 0xa0], ebp
mov edi, edx
jmp 0x406a6d
lea ebp, [ebx + eax - 1]
cmp byte [ebp], 0x5c
jne 0x406a79
mov eax, dword [esp + 0x24]
lea esi, [eax + 0xc]
cmp esi, dword [esp + 0x34]
jae 0x406b60
mov eax, dword [esp + 0xa0]
mov byte [ebp], 0
mov eax, dword [eax + 4]
mov dword [esp], esi
call dword [eax + 0x28]
add eax, dword [esp + 0x28]
cmp dword [esp + 0x2c], eax
jbe 0x406b70
add eax, dword [esp + 0x30]
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call fcn.004a3350
test edi, edi
mov ebx, eax
mov byte [ebp], 0x5c
je 0x406a67
mov dword [esp], edi
call fcn.004abfa8
mov edi, ebx
mov dword [esp + 0x24], esi
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
test eax, eax
jne 0x406a00
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0xa0]
mov esi, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp], ebx
mov ecx, esi
call fcn.00406520
mov eax, dword [esp + 0x3c]
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 + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.0040f830
test eax, eax
jne 0x406990
call fcn.004065a0
call fcn.004064e0
jmp 0x406814
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x5c]
mov dword [esp + 0x14], esi
add edi, 0xc
mov dword [esp + 0x18], eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, dword [esp + 0x50]
sar ecx, 0x1f
sar edx, 1
mov dword [esp + 0xc], eax
sub edx, ecx
mov dword [esp + 0x10], edx
mov eax, dword [ebp]
mov dword [esp + 4], str._s:__s:_stab_entry__ld_is_corrupt__strx__0x_x__type___d_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
cmp edi, dword [esp + 0x48]
jbe 0x40699d
nop
lea esi, [esi]
call fcn.004064e0
mov eax, dword [esp + 0x5c]
mov ebx, 1
mov dword [esp], eax
call fcn.004abfa8
jmp 0x4067bf
mov edi, eax
mov ebp, dword [esp + 0xa0]
jmp 0x406a84
mov ecx, esi
sub ecx, dword [esp + 0x5c]
mov eax, 0x2aaaaaab
mov ebp, dword [esp + 0xa0]
mov edi, esi
imul ecx
mov eax, dword [esp + 0x50]
sar ecx, 0x1f
sar edx, 1
mov dword [esp + 0xc], eax
sub edx, ecx
mov dword [esp + 0x10], edx
mov eax, dword [ebp]
mov dword [esp + 4], str._s:__s:_stab_entry__ld_is_corrupt_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x406a84
mov eax, dword [esp + 0xac]
test eax, eax
jne 0x406814
mov eax, dword [ebp]
mov dword [esp], str._s:_no_recognized_debugging_information
mov dword [esp + 4], eax
call fcn.0041ec10
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 0x406eba
mov esi, dword [esp + 0xa4]
mov dword [esp + 0x2c], 0
mov dword [esp + 0xa0], ebp
jmp 0x406c47
add esi, 4
cmp dword [esp + 0x28], esi
jbe 0x406dd9
mov eax, dword [esp + 0xa0]
mov eax, dword [eax + 4]
lea ecx, [esp + 0x6c]
mov dword [esp + 8], ecx
mov edx, dword [esi]
mov dword [esp + 4], edx
mov edx, dword [esp + 0xa0]
mov dword [esp], edx
call dword [eax + 0x114]
cmp byte [esp + 0x70], 0x2d
jne 0x406c30
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x406e10
mov ebx, dword [esp + 0x74]
test ebx, ebx
je 0x406814
cmp byte [ebx], 0
je 0x406814
xor ebp, ebp
jmp 0x406c93
mov ebp, ebx
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
cmp byte [ebx + eax - 1], 0x5c
jne 0x406cff
lea eax, [esi + 4]
cmp dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
jbe 0x406cff
mov dword [esp], ebx
call fcn.004a9320
mov edi, eax
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov byte [edi + eax - 1], 0
mov dword [esp + 8], 0
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004a3350
mov dword [esp], edi
mov ebx, eax
call fcn.004abfa8
test ebp, ebp
je 0x406cf6
mov dword [esp], ebp
call fcn.004abfa8
cmp byte [ebx], 0
mov esi, dword [esp + 0x24]
jne 0x406c91
movsx edx, word [esp + 0x7a]
movzx eax, byte [esp + 0x78]
mov ecx, dword [esp + 0x6c]
mov dword [esp], ebx
call fcn.00406520
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 + 0x54]
mov dword [esp], eax
call fcn.0040f830
test eax, eax
je 0x406ace
mov ebx, 1
jmp 0x406c30
mov dword [esp + 4], 0x4b79fb
mov dword [esp], ebp
call fcn.0042aaf0
test eax, eax
mov esi, eax
je 0x406855
mov ebx, dword [eax + 0x24]
mov dword [esp], ebx
call fcn.004a91f0
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], 0
mov edi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.0042b380
test eax, eax
je 0x406814
mov eax, dword [esp + 0x54]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.004171b0
test eax, eax
je 0x406814
mov dword [esp], edi
call fcn.004abfa8
jmp 0x4068a3
mov ebp, dword [esp + 0xa0]
call fcn.004064e0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x406e05
mov dword [esp + 4], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call fcn.0040f780
test eax, eax
je 0x406814
mov eax, dword [ebp + 4]
mov edx, dword [eax + 4]
jmp 0x40684c
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 + 0x54]
mov dword [esp], eax
call fcn.0040f700
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x406c78
jmp 0x406814
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 + 0x54]
mov dword [esp], eax
call fcn.0040f700
test eax, eax
mov dword [esp + 0x58], eax
jne 0x406955
jmp 0x406814
call fcn.00423da0
mov dword [esp], eax
call fcn.00423db0
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], eax
jmp 0x4067f5
call fcn.004064e0
jmp 0x406e05