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

Disassembly:
push ebx
push edi
push esi
sub esp, 0x13c
mov eax, dword [esp + 0x14c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x15c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x158]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x154]
mov ecx, dword [esp + 0x150]
mov byte [esp + 0x31], 0
mov esi, dword [0x5055bc]
mov edx, dword [0x5055c0]
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], edx
mov esi, dword [0x5055bc]
mov edx, dword [0x5055c0]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
xor eax, eax
mov ecx, 1
cmp dword [esp + 0x48], 0
cmove eax, ecx
cmp eax, 0
jne 0x412699
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xdc], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x64], 0
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xe4], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x58], 0
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov dword [esp + 0xe8], ecx
mov dword [esp + 0xec], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
lea eax, [esp + 0x50]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0xf4], eax
cmp eax, 0x7fffffff
ja 0x412787
jmp 0x41274e
mov eax, dword [esp + 0x20]
mov edx, dword [0x5055bc]
mov ecx, dword [0x5055c0]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x64], 1
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x12c], edx
mov dword [esp + 0x130], ecx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], ecx
mov edx, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x58], 1
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x134], edx
mov dword [esp + 0x138], ecx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], ecx
mov edx, dword [esp + 0xb0]
mov ecx, dword [esp + 0xb4]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax], 1
jmp 0x412a04
mov edx, dword [esp + 0x2c]
mov ecx, dword [0x5055c4]
mov eax, dword [0x5055c8]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
mov eax, 1
xor ecx, ecx
cmp dword [edx + 4], 0
cmove eax, ecx
cmp eax, 1
je 0x412828
jmp 0x4128af
mov eax, dword [esp + 0x20]
mov edx, dword [0x5055bc]
mov ecx, dword [0x5055c0]
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x11c], edx
mov dword [esp + 0x120], ecx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ecx
mov edx, dword [esp + 0xb8]
mov ecx, dword [esp + 0xbc]
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ecx
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ecx
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x8c]
mov dword [esp + 0x124], edx
mov dword [esp + 0x128], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax], 1
jmp 0x412a04
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov dword [esp + 0xf8], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x98]
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x100], eax
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xc0]
lea ecx, [esp + 0x50]
mov dword [esp + 0x104], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x108], ecx
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0xc4]
cmp eax, ecx
sete al
mov byte [esp + 0x1f], al
and al, 1
mov byte [esp + 0x10f], al
jmp 0x4128db
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004124d0
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
jmp 0x412936
mov al, byte [esp + 0x1f]
movzx ecx, al
and ecx, 1
mov eax, esp
mov dword [eax], ecx
call fcn.00410e30
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x98]
mov edx, dword [esp + 0x9c]
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
call fcn.00412470
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0x94]
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x110], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
mov ecx, 1
cmp edx, 0
cmove eax, ecx
cmp eax, 0
jne 0x4129a4
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xa0]
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x114], edx
mov dword [esp + 0x118], ecx
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax], 0
jmp 0x4129f4
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xd0], edx
mov dword [esp + 0xd4], ecx
mov edx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd4]
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], ecx
mov edx, dword [esp + 0xc8]
mov ecx, dword [esp + 0xcc]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax], 1
jmp 0x4129f6
mov eax, dword [esp + 0x24]
add esp, 0x13c
pop esi
pop edi
pop ebx
ret
jmp 0x4129f6