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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x591a36
sub esp, 0x68
mov eax, 0
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
call fcn.0058fcc0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x59188f
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x24], esi
mov ecx, dword [esp + 0x78]
cmp ecx, 5
jge 0x59161b
xor edx, edx
jmp 0x591650
mov eax, dword [esp + 0x74]
mov dword [esp], eax
lea ecx, [0x63ca4e]
mov dword [esp + 4], ecx
mov dword [esp + 8], 5
call fcn.00402800
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x24]
mov edx, eax
mov eax, dword [esp + 0x3c]
test dl, dl
je 0x59168f
lea ecx, [0x60f2e0]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [0x63cfe3]
mov dword [esp + 8], edx
mov dword [esp + 0xc], 7
call fcn.0040fae0
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 4]
test eax, eax
je 0x591695
mov ecx, dword [esp + 0x78]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x74]
jmp 0x59170b
lea eax, [0x60f2e0]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
lea ecx, [0x63cfe3]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 7
call fcn.00410170
mov edi, dword [esp + 0x10]
mov dword [edi + 4], 5
mov eax, dword [0x816df0]
test eax, eax
jne 0x5916dc
lea eax, [0x63ca67]
mov dword [edi], eax
jmp 0x5916e7
lea eax, [0x63ca67]
call fcn.0045e5d0
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
call fcn.0058e430
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 4], ebx
call fcn.004bede0
mov eax, dword [esp + 8]
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x30], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp], edx
mov edx, dword [esp + 0x70]
mov dword [esp + 4], edx
call fcn.00408eb0
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 4], edx
call fcn.00408eb0
mov eax, dword [esp + 8]
lea ecx, [0x7f0040]
mov dword [esp], ecx
lea ecx, [0x60d840]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.0046ea30
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 4], ecx
call fcn.00408eb0
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x54]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
call fcn.00408eb0
mov eax, dword [esp + 8]
lea ecx, [0x7f0060]
mov dword [esp], ecx
lea ecx, [0x60d840]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.0046ea30
lea eax, [0x816c08]
mov dword [esp], eax
call fcn.0046f740
lea eax, [0x656668]
mov dword [esp + 0x64], eax
lea eax, [0x816c08]
mov dword [esp + 0x60], eax
mov byte [esp + 0x23], 1
mov eax, dword [esp + 0x40]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x5c], ecx
lea edx, [0x7f0020]
mov dword [esp], edx
lea ebx, [0x60d840]
mov dword [esp + 4], ebx
lea ebp, [esp + 0x58]
mov dword [esp + 8], ebp
call fcn.0046e7b0
movzx eax, byte [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
test al, al
je 0x59186f
lea ebx, [0x606540]
cmp edx, ebx
jne 0x591a16
mov edx, dword [ecx]
mov ebp, dword [ecx + 4]
mov ecx, dword [ecx + 8]
jmp 0x59187b
lea ebx, [0x606540]
xor ebp, ebp
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ecx
mov esi, dword [esp + 0x30]
xor eax, eax
jmp 0x5918a7
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], ebx
add esp, 0x68
ret
inc eax
mov ecx, edi
lea ebx, [0x606540]
cmp ebp, eax
jle 0x591918
lea ebx, [edx + eax*8]
mov edi, ecx
mov ecx, dword [ebx + 4]
mov ebx, dword [ebx]
cmp ecx, esi
jne 0x59189e
mov dword [esp + 0x38], eax
mov dword [esp], ebx
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00402800
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5918f0
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
jmp 0x59189e
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov byte [esp + 0x23], 0
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.0046fae0
add esp, 0x68
ret
lea ebx, [ebp + 1]
cmp ecx, ebx
jae 0x591954
lea eax, [0x60d840]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ebx
call fcn.004476d0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea ebx, [eax + 1]
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x34], ecx
lea ecx, [edx + ebp*8 + 4]
mov dword [ecx], esi
mov ecx, dword [0x816df0]
lea edi, [edx + ebp*8]
test ecx, ecx
jne 0x59197b
mov ecx, dword [esp + 0x48]
mov dword [edi], ecx
jmp 0x591984
mov eax, dword [esp + 0x48]
call fcn.0045e5d0
mov eax, dword [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.00408eb0
mov eax, dword [esp + 8]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x4c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
call fcn.00408f30
mov eax, dword [esp + 0xc]
lea ecx, [0x7f0020]
mov dword [esp], ecx
lea ecx, [0x60d840]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 8], ecx
lea ecx, [0x606540]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
call fcn.0046ea30
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov byte [esp + 0x23], 0
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.0046fae0
add esp, 0x68
ret
mov dword [esp], edx
mov dword [esp + 4], ebx
lea eax, [0x60d140]
mov dword [esp + 8], eax
call fcn.00408b60
nop
call fcn.00432460
add esp, 0x68
ret
call fcn.0045d190
jmp fcn.00591590