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

Disassembly:
push 0xffffffffffffffff
push 0x41e828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
mov ebp, ecx
push edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea ebx, [ebp + 4]
push ecx
push edx
mov ecx, ebx
mov edi, eax
mov dword [esp + 0x24], ebx
call fcn.0040a340
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax]
lea ecx, [esp + 0x7c]
xor esi, esi
push ecx
lea edx, [esp + 0x16]
push esi
push edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x20], eax
call fcn.0040a420
cmp edi, esi
mov dword [esp + 0x74], esi
jle 0x40974a
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
mov esi, dword [eax]
je 0x409619
mov edx, dword [ecx]
push esi
call dword [edx]
test al, al
jne 0x409624
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x40972e
mov eax, dword [ebp + 0x1c]
push eax
push esi
call fcn.00419ce0
mov esi, eax
add esp, 8
test esi, esi
je 0x40972e
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ebx, ecx
jbe 0x40972a
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0xa
add esi, ecx
cmp byte [esi], 0x30
jne 0x40968e
movsx ecx, byte [esi + 1]
push ecx
call fcn.00419be0
add esp, 4
cmp eax, 0x78
jne 0x40968e
add esi, 2
mov edi, 0x10
movsx edx, byte [esi]
push edx
call fcn.00419380
add esp, 4
test eax, eax
je 0x4096b0
movsx eax, byte [esi + 1]
inc esi
push eax
call fcn.00419380
add esp, 4
test eax, eax
jne 0x40969e
push edi
push 0
push esi
call fcn.00419690
add esp, 0xc
lea ecx, [esp + 0x13]
mov dword [esp + 0x24], eax
push ecx
lea ecx, [esp + 0x44]
call fcn.0040a610
lea edx, [esp + 0x24]
push eax
push edx
lea ecx, [esp + 0x64]
mov byte [esp + 0x7c], 1
call fcn.0040a560
push eax
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 2
call fcn.0040a3d0
mov esi, dword [eax]
lea ecx, [esp + 0x60]
mov byte [esp + 0x74], 1
call fcn.004021c0
lea ecx, [esp + 0x40]
mov byte [esp + 0x74], 0
call fcn.004021c0
mov eax, dword [esi + 0x14]
lea ecx, [esi + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x30]
push eax
call fcn.0040a640
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add ecx, 0xc
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], eax
jne 0x409603
xor esi, esi
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x34], 0x4277e8
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov eax, dword [ecx]
mov dword [esp + 0x18], eax
xor edx, edx
cmp eax, ecx
sete dl
neg dl
sbb edx, edx
inc edx
test dl, dl
je 0x4097d6
mov eax, dword [eax + 0x14]
xor ecx, ecx
mov esi, dword [eax]
cmp esi, eax
sete cl
neg cl
sbb ecx, ecx
inc ecx
test cl, cl
je 0x4097b1
mov edx, dword [esi + 8]
mov eax, dword [ebx + 8]
push edx
push 1
push eax
mov ecx, ebx
call fcn.00409f50
mov edx, dword [esp + 0x18]
mov esi, dword [esi]
xor ecx, ecx
cmp esi, dword [edx + 0x14]
sete cl
neg cl
sbb ecx, ecx
inc ecx
test cl, cl
jne 0x409789
mov ecx, dword [ebx + 8]
lea eax, [esp + 0x34]
push eax
push 1
push ecx
mov ecx, ebx
call fcn.00409f50
lea ecx, [esp + 0x18]
call fcn.0040a6a0
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x18]
jmp 0x409764
mov eax, dword [ecx]
push ecx
lea edx, [esp + 0x80]
push eax
push edx
lea ecx, [esp + 0x58]
mov dword [esp + 0x80], 0xffffffff
call fcn.0040a450
mov eax, dword [esp + 0x50]
push eax
call fcn.004192d0
mov eax, dword [0x427804]
add esp, 4
xor esi, esi
dec eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], esi
mov dword [0x427804], eax
jne 0x40982e
mov eax, dword [0x427800]
push eax
call fcn.004192d0
add esp, 4
mov dword [0x427800], esi
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x68
ret 4