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

Disassembly:
push 0xffffffffffffffff
push 0x4afd50
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4d5784]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d5784]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
mov edi, ecx
xor ecx, ecx
mov dword [esp + 0x30], eax
cmp dword [edi + 0x14], ecx
je 0x4066f5
mov eax, dword [edi + 0x30]
cmp eax, ecx
je 0x4066f5
xor edx, edx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ecx
mov word [esp + 0x54], dx
lea ebp, [eax - 1]
cmp ebp, ecx
mov dword [esp + 0x78], ecx
lea ebx, [ecx + 8]
jl 0x40664f
lea ebx, [ebx]
cmp dword [edi + 0x30], ebp
ja 0x4064aa
call fcn.0042f899
cmp dword [edi + 0x34], ebx
jb 0x4064b4
mov eax, dword [edi + 0x20]
jmp 0x4064b7
lea eax, [edi + 0x20]
movzx eax, word [eax + ebp*2]
lea edx, [esp + 0x50]
lea esi, [esp + 0x14]
cmp ax, 0x39
jne 0x4065b0
push 0x30
call fcn.004089b0
add esp, 4
push 0xffffffffffffffff
xor esi, esi
push esi
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 3
call fcn.004057c0
mov byte [esp + 0x78], 0
cmp dword [esp + 0x2c], ebx
jb 0x406506
mov eax, dword [esp + 0x18]
push eax
call fcn.0042f8dc
add esp, 4
cmp ebp, esi
jne 0x4065a2
xor ecx, ecx
push 1
mov word [esp + 0x3c], cx
push 0x4ca2d8
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], esi
call fcn.004052e0
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x84], 4
call fcn.00408900
add esp, 0xc
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 5
call fcn.004057c0
cmp dword [esp + 0x2c], ebx
jb 0x406578
mov edx, dword [esp + 0x18]
push edx
call fcn.0042f8dc
add esp, 4
xor eax, eax
mov byte [esp + 0x78], al
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
mov word [esp + 0x18], ax
cmp dword [esp + 0x4c], ebx
jb 0x4065a2
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0042f8dc
add esp, 4
sub ebp, 1
jns 0x4064a0
jmp 0x40664f
inc eax
push eax
call fcn.004089b0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 1
call fcn.004057c0
mov byte [esp + 0x78], 0
cmp dword [esp + 0x2c], ebx
jb 0x4065e8
mov edx, dword [esp + 0x18]
push edx
call fcn.0042f8dc
add esp, 4
sub ebp, 1
js 0x40664f
lea ecx, [ecx]
cmp dword [edi + 0x30], ebp
ja 0x4065fa
call fcn.0042f899
cmp dword [edi + 0x34], ebx
jb 0x406604
mov eax, dword [edi + 0x20]
jmp 0x406607
lea eax, [edi + 0x20]
movzx eax, word [eax + ebp*2]
push eax
lea edx, [esp + 0x54]
lea esi, [esp + 0x18]
call fcn.004089b0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 2
call fcn.004057c0
mov byte [esp + 0x78], 0
cmp dword [esp + 0x2c], ebx
jb 0x40664a
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0042f8dc
add esp, 4
sub ebp, 1
jns 0x4065f0
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x58]
lea esi, [edi + 0x1c]
push edx
mov ecx, esi
call fcn.004057c0
push esi
lea eax, [esp + 0x38]
push edi
push eax
call fcn.00408900
add edi, 0x38
push edi
push eax
lea ecx, [esp + 0x28]
push ecx
mov byte [esp + 0x90], 6
call fcn.00408900
add esp, 0x18
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push 0
push eax
mov byte [esp + 0x84], 7
call fcn.004057c0
cmp dword [esp + 0x2c], ebx
jb 0x4066b1
mov edx, dword [esp + 0x18]
push edx
call fcn.0042f8dc
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], 0
mov word [esp + 0x18], ax
cmp dword [esp + 0x4c], ebx
jb 0x4066db
mov ecx, dword [esp + 0x38]
push ecx
call fcn.0042f8dc
add esp, 4
cmp dword [esp + 0x68], ebx
jb 0x4066ee
mov edx, dword [esp + 0x54]
push edx
call fcn.0042f8dc
add esp, 4
mov eax, 1
jmp 0x4066f7
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0043039d
add esp, 0x68
ret 4