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

Disassembly:
push 0xffffffffffffffff
push 0x425bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x42d414]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42d414]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa0]
mov ebp, dword [esp + 0xa4]
xor ebx, ebx
mov esi, 0xf
mov edi, ecx
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
push 0xffffffffffffffff
mov dword [esp + 0x9c], ebx
push ebx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.0040fa40
push 0xffffffffffffffff
mov byte [esp + 0x9c], 1
push ebx
push edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.0040fa40
mov byte [esp + 0x98], 2
mov edi, dword [ebp + 8]
cmp dword [ebp + 4], edi
jbe 0x4065d4
call fcn.0041a633
mov ebx, dword [ebp + 4]
cmp ebx, dword [ebp + 8]
jbe 0x4065e1
call fcn.0041a633
push edi
push ebp
push ebx
push ebp
lea eax, [esp + 0x24]
push eax
mov ebx, ebp
call fcn.0040c160
xor ebx, ebx
cmp dword [esp + 0x4c], ebx
je 0x406712
lea ecx, [ecx]
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x40660f
lea eax, [esp + 0x58]
mov ecx, dword [esp + 0x68]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
call fcn.0040b040
mov edi, eax
sub esp, 0x1c
cmp edi, 0xffffffff
mov dword [esp + 0x30], esp
jne 0x40668f
mov ecx, esp
push eax
push ebx
lea eax, [esp + 0x5c]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.0040fa40
lea ecx, [esp + 0x38]
push ecx
call fcn.00406330
add esp, 0x20
push edi
push ebx
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 3
call fcn.0040fa40
mov byte [esp + 0x98], 2
cmp dword [esp + 0x34], 0x10
jb 0x406681
mov edx, dword [esp + 0x20]
push edx
call fcn.00419cac
add esp, 4
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x40]
call fcn.00410020
jmp 0x4066ee
mov esi, esp
push edi
xor ecx, ecx
lea edx, [esp + 0x58]
call fcn.00409c00
lea eax, [esp + 0x38]
push eax
call fcn.00406330
add esp, 0x20
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 4
call fcn.0040fa40
mov byte [esp + 0x98], 2
cmp dword [esp + 0x34], 0x10
jb 0x4066db
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00419cac
add esp, 4
add edi, 1
push edi
push ebx
lea ecx, [esp + 0x40]
call fcn.00410020
mov esi, 0xf
cmp dword [esp + 0x84], ebx
je 0x406708
lea edx, [esp + 0x70]
push edx
mov esi, ebp
call fcn.0040adc0
mov esi, 0xf
cmp dword [esp + 0x4c], ebx
jne 0x406600
mov edi, 0x10
cmp dword [esp + 0x6c], edi
jb 0x40672a
mov eax, dword [esp + 0x58]
push eax
call fcn.00419cac
add esp, 4
cmp dword [esp + 0x50], edi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
jb 0x406749
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00419cac
add esp, 4
cmp dword [esp + 0x88], edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x40676b
mov edx, dword [esp + 0x74]
push edx
call fcn.00419cac
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00419af5
add esp, 0x88
ret