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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5978db
sub esp, 0x5c
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x48]
mov edx, dword [eax + 0x44]
mov ebx, dword [eax + 0x40]
mov ebp, dword [esp + 0x64]
mov dword [esp], ebp
mov esi, dword [esp + 0x68]
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea ecx, [0xa56660]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov edi, dword [esp + 0x70]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
lea edi, [0x98269c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], ebx
call fcn.00589e10
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x48]
jmp 0x597743
mov eax, dword [esp + 0x60]
mov ecx, dword [eax + 0x48]
mov edx, dword [eax + 0x44]
mov eax, dword [eax + 0x40]
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
lea ecx, [0xa56660]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
lea edx, [0x98269c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], eax
call fcn.00589e10
mov eax, dword [esp + 0x40]
inc eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x38]
mov ebp, dword [esp + 0x64]
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x6c]
mov ebp, esi
mov esi, edi
mov edi, dword [esp + 0x68]
mov dword [esp + 0x40], eax
mov eax, ecx
mov ecx, ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], eax
mov edx, dword [esp + 0x40]
cmp edx, 2
jge 0x5978d4
test esi, esi
je 0x5978ca
mov edx, dword [esi + 0xc]
test edx, edx
sete dl
test dl, dl
jne 0x597811
xor edx, edx
test dl, dl
je 0x59779b
test ecx, ecx
jne 0x5976b5
mov dword [esp], eax
call fcn.0057fa50
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
jmp 0x5976b5
test ecx, ecx
jne 0x5977f9
lea eax, [0x90ae20]
mov dword [esp], eax
call fcn.0040ae10
mov edi, dword [esp + 4]
mov dword [esp + 0x58], edi
mov eax, dword [0xdd7ec0]
test eax, eax
jne 0x5977ee
mov eax, dword [esp + 0x50]
mov dword [edi], eax
mov dword [esp], eax
mov byte [esp + 4], 1
call fcn.00597c90
mov eax, dword [esp + 0x58]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x5c
ret
mov eax, dword [esp + 0x50]
call fcn.00456fe0
jmp 0x5977c5
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x54]
mov dword [esp + 0x7c], eax
add esp, 0x5c
ret
mov dword [esp + 0x44], ecx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
call fcn.005978f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x597856
mov eax, 1
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x64]
mov ebp, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
mov edi, dword [esp + 0x68]
mov edx, eax
mov eax, dword [esp + 0x50]
jmp 0x597772
lea eax, [0xa4e000]
mov ecx, dword [esp + 0x44]
cmp eax, ecx
jne 0x5978c3
mov edx, dword [esp + 0x54]
jne 0x5978bb
mov ebx, dword [edx + 0x20]
mov edx, dword [edx + 0x24]
lea ebp, [0xa4e440]
cmp ebp, ebx
jne 0x5978b2
mov esi, edx
jne 0x5978ac
mov ebx, dword [edx + 0xc]
mov edx, dword [edx + 8]
test edx, edx
je 0x5978a4
lea esi, [0x937700]
cmp dword [edx + 4], esi
jne 0x5978a0
cmp dword [ebx], 0x20000003
sete dl
mov eax, edx
jmp 0x597837
xor edx, edx
jmp 0x59789c
lea esi, [0x937700]
jmp 0x5978a0
mov edx, ebx
mov ebx, esi
jmp 0x597884
mov esi, edx
mov edx, 0
jmp 0x59787c
mov edx, dword [esp + 0x54]
mov ebx, ecx
jmp 0x597870
mov edx, 0
jmp 0x597868
mov edx, 1
jmp 0x597768
xor edx, edx
jmp 0x597772
call fcn.004557a0
jmp fcn.00597600