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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5977af
sub esp, 0x5c
movzx eax, word [esp + 0x68]
cmp ax, 0x1d
jne 0x597658
lea eax, [0x633cc0]
mov dword [esp], eax
mov dword [esp + 4], 0x20
mov dword [esp + 8], 0x20
call fcn.00442930
mov eax, dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x60]
mov dword [esp], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0x20
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 0x20
call fcn.00489c50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
test eax, eax
jne 0x59763c
mov eax, dword [0x81c178]
mov dword [esp + 0x48], eax
mov ecx, dword [0x81c17c]
mov dword [esp + 0x38], ecx
mov edx, dword [0x81c180]
mov dword [esp + 0x3c], edx
lea ebx, [0x62efc0]
mov dword [esp], ebx
call fcn.0040b4f0
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [esp + 0xc], 0x20
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
call fcn.005716e0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
test eax, eax
jne 0x597620
mov dword [esp + 0x30], edx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
lea eax, [0x644960]
mov dword [esp], eax
call fcn.0040b4f0
mov edi, dword [esp + 4]
mov dword [edi + 4], 0x20
mov dword [edi + 8], 0x20
mov eax, dword [0x8326a0]
test eax, eax
jne 0x597615
mov ecx, dword [esp + 0x58]
mov dword [edi], ecx
mov ecx, dword [esp + 0x30]
mov dword [edi + 0x10], ecx
mov ecx, dword [esp + 0x34]
mov dword [edi + 0x14], ecx
mov ecx, dword [0x8326a0]
test ecx, ecx
jne 0x5975ff
mov eax, dword [esp + 0x44]
mov dword [edi + 0xc], eax
lea eax, [0x6ca630]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x5c
ret
lea ecx, [edi + 0xc]
mov eax, edi
mov edi, ecx
mov edx, eax
mov eax, dword [esp + 0x44]
call fcn.0045ace0
mov edi, edx
jmp 0x5975dd
mov eax, dword [esp + 0x58]
call fcn.0045ace0
jmp 0x5975be
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ebp
add esp, 0x5c
ret
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x5c
ret
mov word [esp], ax
call fcn.005977c0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
test al, al
je 0x59776c
mov dword [esp + 0x40], ecx
mov dword [esp + 0x54], edx
lea eax, [0x6505a0]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 4]
mov dword [esp + 0x4c], eax
movzx ecx, word [esp + 0x68]
mov word [eax + 0x14], cx
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0xc], ecx
call fcn.0051b210
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x4c]
mov dword [edi + 4], ebp
mov dword [edi + 8], esi
mov ebp, dword [0x8326a0]
test ebp, ebp
jne 0x597743
mov dword [edi], ecx
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], ebx
test eax, eax
je 0x597721
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x78], eax
add esp, 0x5c
ret
lea eax, [0x6ca610]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x5c
ret
mov ebp, eax
mov eax, ecx
call fcn.0045ace0
lea ecx, [edi + 0xc]
mov eax, edi
mov edi, ecx
mov esi, eax
mov eax, edx
call fcn.0045ace0
lea edi, [esi + 0x10]
mov eax, ebx
call fcn.0045ace0
mov eax, ebp
mov edi, esi
jmp 0x5976fd
lea eax, [0x63eca0]
mov dword [esp], eax
call fcn.0040b4f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x26
lea ecx, [0x67d3b5]
mov dword [eax], ecx
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
lea ecx, [0x6c8150]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x5c
ret
call fcn.00459790
jmp fcn.00597470