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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5948ec
sub esp, 0x7c
lea eax, [0x77df10]
mov dword [esp], eax
call fcn.00470ed0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
lea edx, [0x5d4640]
cmp edx, ecx
jne 0x5948d5
mov dword [esp + 0x3c], eax
lea eax, [0x77df90]
mov dword [esp], eax
call fcn.00470ed0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
lea edx, [0x5ef760]
cmp edx, ecx
jne 0x5948bf
mov dword [esp + 0x38], eax
lea edi, [esp + 0x50]
xor eax, eax
call fcn.0045e0ab
mov ecx, dword [esp + 0x84]
mov ebx, dword [ecx + 4]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x5c], ebx
movzx ebx, byte [esp + 0x94]
mov byte [esp + 0x60], bl
mov edi, dword [esp + 0x38]
test byte [edi], al
mov ebx, dword [0x7a0970]
test ebx, ebx
jne 0x5948a0
lea esi, [esp + 0x50]
call fcn.0045e58e
mov eax, dword [esp + 0x80]
mov dword [esp], eax
lea ecx, [0x65fe50]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x84]
mov dword [esp + 0xc], edx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x10], ebx
call fcn.00594900
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test eax, eax
jne 0x59488e
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov ecx, dword [esp + 0x80]
mov ecx, dword [ecx + 0x28]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x84]
mov edx, dword [edx + 0xc]
lea edi, [esp + 0x64]
xor eax, eax
call fcn.0045e0aa
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x74], ecx
lea ebx, [esp + 0x48]
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], edx
lea edx, [esp + 0x64]
mov dword [esp], edx
lea edx, [esp + 0x24]
mov dword [esp + 4], edx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 3
mov byte [esp + 0x14], 1
call fcn.00441d30
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x594836
cmp ecx, 1
je 0x594818
cmp ecx, 2
jne 0x5948bf
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], eax
lea edx, [0x77df10]
mov dword [esp], edx
lea edx, [0x5d4640]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edx
call fcn.00470e30
lea eax, [0x77df90]
mov dword [esp], eax
lea eax, [0x5ef760]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
call fcn.00470e30
mov eax, dword [esp + 0x20]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x9c], eax
add esp, 0x7c
ret
mov eax, dword [0x7832d0]
mov ecx, dword [0x7832d4]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
add esp, 0x7c
ret
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea eax, [esp + 0x40]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.00405b90
movzx eax, byte [esp + 8]
test al, al
je 0x594870
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
jmp 0x5947b6
mov eax, dword [0x783368]
mov ecx, dword [0x78336c]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
add esp, 0x7c
ret
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], edx
add esp, 0x7c
ret
lea eax, [0x5f13c0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
call fcn.004106a0
jmp 0x5946cc
mov dword [esp], ecx
mov dword [esp + 4], edx
lea eax, [0x5daa80]
mov dword [esp + 8], eax
call fcn.00408de0
mov dword [esp], ecx
mov dword [esp + 4], edx
lea eax, [0x5daa80]
mov dword [esp + 8], eax
call fcn.00408de0
nop
call fcn.0045c8b0
jmp fcn.00594600