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

Disassembly:
push 0xffffffffffffffff
push 0x421e2b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x42d1d0]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42d1d0]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24c]
xor esi, esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
cmp eax, esi
je 0x4070de
cmp ecx, esi
je 0x4070de
push eax
call dword [0x423034]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x108]
push eax
push esi
push ecx
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], esi
mov ebp, esi
mov edi, esi
mov ebx, esi
call dword [0x423020]
test eax, eax
je 0x406f14
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x120]
push eax
call dword [0x423084]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x78]
push edx
push esi
call dword [0x423088]
movzx edi, word [esp + 0x2a]
movzx eax, word [esp + 0x30]
movzx ecx, word [esp + 0x34]
movzx ebx, word [esp + 0x28]
movzx ebp, word [esp + 0x2e]
movzx esi, word [esp + 0x32]
dec edi
mov dword [esp + 0x64], eax
mov dword [esp + 0x5c], ecx
push 0x103
lea edx, [esp + 0x131]
push 0
push edx
mov byte [esp + 0x138], 0
call fcn.00413110
add esp, 0xc
lea eax, [esp + 0x12c]
push eax
call dword [0x42308c]
test eax, eax
jne 0x406f9b
mov ecx, dword [esp + 0x14]
push ecx
call dword [0x4231d8]
push 3
lea edx, [esp + 0x8c]
push eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x8c], edx
call fcn.00404350
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x12c]
call fcn.00406df0
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x88]
cmp eax, ecx
je 0x406f9b
push eax
call fcn.00411598
add esp, 4
mov eax, dword [esp + 0x20]
push 3
lea edx, [esp + 0x8c]
push eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x8c], edx
call fcn.00404350
mov dword [esp + 0x244], 0
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0040a970
mov edx, eax
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x8c]
add esp, 4
mov dword [esp + 0x18], edx
cmp eax, ecx
je 0x40700f
push eax
call fcn.00411598
mov edx, dword [esp + 0x1c]
add esp, 4
test edx, edx
je 0x4070cd
mov ecx, dword [esp + 0x64]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x12c]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ecx
push eax
lea ecx, [esp + 0x3c]
mov esi, edx
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], ebx
call fcn.0040aa80
add esp, 4
test eax, eax
jne 0x4070bd
mov eax, dword [esp + 0x14]
lea esi, [esp + 0x24]
lea ebx, [esp + 0x14]
call fcn.00402430
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4070b0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, esi
call fcn.0040b0d0
test eax, eax
jne 0x4070a7
mov dword [esp + 0x1c], 1
push esi
call fcn.004110c5
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040b1b0
add esp, 4
mov esi, dword [esp + 0x18]
call fcn.0040b4a0
cmp dword [esp + 0x1c], 0
jne 0x4070d8
mov edx, dword [esp + 0x20]
push edx
call dword [0x423034]
mov eax, dword [esp + 0x1c]
jmp 0x4070e0
xor eax, eax
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.00410e2c
add esp, 0x234
ret