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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x59800e
sub esp, 0x48
movzx eax, byte [esp + 0x4c]
cmp al, 0xe2
ja 0x597dad
cmp al, 0xe1
jne 0x597ca4
mov eax, dword [esp + 0x50]
lea ecx, [0x649960]
cmp eax, ecx
jne 0x597c42
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
call fcn.0054a0a0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
test eax, eax
je 0x597f32
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x48
ret
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
lea eax, [0x67e4f8]
mov dword [esp], eax
mov dword [esp + 4], 0x22
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b2970
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x48
ret
cmp al, 0xe2
jne 0x597fdb
mov eax, dword [esp + 0x50]
lea ecx, [0x649960]
cmp eax, ecx
jne 0x597d4b
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x20], eax
call fcn.0054a7e0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
test eax, eax
je 0x597f32
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x48
ret
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
lea eax, [0x67e4f8]
mov dword [esp], eax
mov dword [esp + 4], 0x22
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b2970
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x48
ret
cmp al, 0xe3
jne 0x597ea2
mov eax, dword [esp + 0x50]
lea ecx, [0x662540]
cmp eax, ecx
jne 0x597e40
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
call fcn.0053fc40
movzx eax, byte [esp + 0x1c]
test al, al
jne 0x597f32
lea eax, [0x647880]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1a
lea ecx, [0x67a9e8]
mov dword [eax], ecx
lea ecx, [0x6d2f90]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x48
ret
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
lea eax, [0x67f1a4]
mov dword [esp], eax
mov dword [esp + 4], 0x24
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b2970
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x48
ret
cmp al, 0xe4
jne 0x597fdb
mov eax, dword [esp + 0x50]
lea ecx, [0x645560]
cmp eax, ecx
jne 0x597f79
mov eax, dword [esp + 0x54]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.005497e0
movzx eax, byte [esp + 0x34]
test al, al
je 0x597f46
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x48
ret
lea eax, [0x647880]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1c
lea ecx, [0x67b8f6]
mov dword [eax], ecx
lea ecx, [0x6d2f90]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x48
ret
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x44], eax
lea eax, [0x67fe24]
mov dword [esp], eax
mov dword [esp + 4], 0x26
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004b2970
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x48
ret
lea eax, [0x647880]
mov dword [esp], eax
call fcn.0040af90
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x26
lea ecx, [0x67fee2]
mov dword [eax], ecx
lea ecx, [0x6d2f90]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x48
ret
call fcn.0045dbb0
jmp fcn.00597ba0