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

Disassembly:
sub esp, 0x60
xor eax, eax
mov dword [esp], 0
cmp word [esp + 0x78], ax
mov dword [esp + 0x28], 0
setne al
mov dword [esp + 0x18], 0
inc eax
mov dword [esp + 0x1c], 0
movzx eax, ax
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x34], eax
lea eax, [esp + 8]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x48], eax
lea eax, [esp + 4]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x2c], 0
test eax, eax
je 0x40a0e6
cmp dword [esp + 0x70], 0
je 0x40a0e6
cmp dword [esp + 0x74], 0
je 0x40a0e6
push esi
mov esi, dword [esp + 0x80]
lea ecx, [esp + 0x20]
push esi
push ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
push ecx
push eax
call fcn.0040a100
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x409ddf
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x409dd8
mov eax, dword [esp + 4]
mov dword [ecx], eax
xor eax, eax
pop esi
add esp, 0x60
ret
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x28]
test ebx, ebx
jne 0x409e08
test ebp, ebp
jne 0x409e08
mov eax, dword [esp + 0x74]
test eax, eax
je 0x409dff
mov dword [eax], 0xd
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x60
ret
push esi
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
push ecx
push eax
call fcn.0040a1a0
add esp, 0x14
test ax, ax
je 0x40a0c1
push edi
mov edi, dword [0x41b1e4]
push 0x60
call edi
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x409ed7
push 0x60
push 0
push eax
call fcn.00416a96
push esi
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push dword [esp + 0x38]
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0xac]
push eax
push dword [esp + 0x3c]
call fcn.004095e0
add esp, 0x2c
push esi
test ax, ax
je 0x40a029
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x84]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push dword [eax + 0x30]
call fcn.00408eb0
add esp, 0x14
test ax, ax
je 0x40a028
push 0xb0
call edi
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x409ed7
push 0xb0
push 0
push eax
call fcn.00416a96
push 0xb0
call edi
add esp, 0x10
mov dword [esp + 0x24], eax
test eax, eax
jne 0x409f00
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00408f00
mov eax, dword [esp + 0x80]
add esp, 8
test eax, eax
je 0x409ef6
mov dword [eax], 3
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x60
ret
push 0xb0
push 0
push eax
call fcn.00416a96
mov eax, dword [esp + 0x3c]
add esp, 0xc
cmp byte [eax + 0x10], 0x50
push esi
jne 0x40a095
mov ebp, dword [esp + 0x8c]
lea ecx, [esp + 0x14]
push ecx
push dword [esp + 0x8c]
push dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x28]
movzx eax, byte [eax + 0x4d]
push eax
push ebp
push dword [esp + 0x38]
push dword [esp + 0x40]
call fcn.004091f0
add esp, 0x24
test ax, ax
je 0x40a028
push 0x14
call edi
mov edi, eax
add esp, 4
test edi, edi
jne 0x409f90
mov eax, dword [esp + 0x78]
test eax, eax
je 0x409f78
mov dword [eax], 3
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00408f00
add esp, 8
xor eax, eax
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x60
ret
xor eax, eax
lea edx, [esp + 0x18]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov eax, dword [esp + 0x14]
sub ebx, dword [eax + 0x14]
sub ebx, ebp
mov dword [edi], ebx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x1c]
dec eax
add ebx, eax
mov dword [edi + 8], ebx
cmp dword [esp + 0x18], 0
jne 0x409fd0
mov dword [esp + 0x18], edi
jmp 0x409fe8
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x409fdd
cmp dword [ecx], ebx
ja 0x40a055
cmp dword [eax + 0x10], 0
lea edx, [eax + 0x10]
jne 0x409fd0
mov dword [edx], edi
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x10]
push esi
push eax
push edi
push dword [esp + 0x24]
push dword [esp + 0x2c]
push dword [esp + 0x38]
call fcn.0040a1e0
add esp, 0x18
push esi
test ax, ax
je 0x40a029
lea eax, [esp + 0x14]
push eax
push edi
push dword [esp + 0x2c]
push dword [esp + 0x34]
call fcn.00409100
add esp, 0x14
test ax, ax
jne 0x40a062
push esi
lea eax, [esp + 0x48]
push eax
call fcn.00408f00
mov ecx, dword [esp + 0x80]
add esp, 8
test ecx, ecx
je 0x409ef6
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
mov dword [ecx], eax
xor eax, eax
pop esi
add esp, 0x60
ret
mov dword [eax + 0x10], edi
mov eax, dword [edx]
mov eax, dword [eax + 0x10]
mov dword [eax + 0x10], ecx
jmp 0x409fe8
mov edi, dword [esp + 0x78]
test edi, edi
je 0x40a070
mov eax, dword [esp + 0x10]
mov dword [edi], eax
lea eax, [esp + 0x44]
push esi
push eax
call fcn.00408f00
add esp, 8
test edi, edi
je 0x40a088
mov dword [edi], 3
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
add esp, 0x60
ret
lea eax, [esp + 0x48]
push eax
call fcn.00408f00
mov eax, dword [esp + 0x80]
add esp, 8
test eax, eax
je 0x409ef6
pop edi
pop ebp
pop ebx
mov dword [eax], 8
xor eax, eax
pop esi
add esp, 0x60
ret
lea eax, [esp + 0x40]
push esi
push eax
call fcn.00408f00
mov eax, dword [esp + 0x7c]
add esp, 8
test eax, eax
je 0x40a0dd
mov dword [eax], 5
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 0x60
ret
mov eax, dword [esp + 0x68]
test eax, eax
je 0x40a0f4
mov dword [eax], 4
xor eax, eax
add esp, 0x60
ret