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

Disassembly:
mov ecx, dword [0x6816e0]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x52fc8b
sub esp, 0x60
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x70]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
test al, al
je 0x52fa57
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
call fcn.0052fdd0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x74]
mov ebx, dword [edx]
mov ebp, dword [esp + 8]
mov dword [esp + 0x40], ebp
mov esi, dword [esp + 0xc]
mov dword [esp + 0x24], esi
mov edi, dword [esp + 0x64]
mov dword [esp], edi
mov edi, dword [esp + 0x68]
mov dword [esp + 4], edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x70]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
test ecx, ecx
jne 0x52fa47
test eax, eax
jne 0x52fa47
xor eax, eax
jmp 0x52faa9
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x60
ret
mov edx, dword [esp + 0x74]
mov eax, dword [edx]
mov ecx, dword [esp + 0x64]
mov dword [esp], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x60
ret
mov ecx, dword [esp + 0x38]
lea eax, [ecx + 1]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jge 0x52fc77
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x40]
lea edx, [ecx + eax*8]
mov ebx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x54], ebp
mov esi, dword [esp + 0x64]
mov dword [esp + 0x50], esi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x58], ebx
lea edx, [esp + 0x50]
mov dword [esp], edx
mov dword [esp + 4], 2
mov dword [esp + 8], 2
call fcn.005307b0
mov edx, dword [0x63e54c]
mov eax, dword [edx]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x3c], ecx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
mov dword [esp], ecx
mov dword [esp + 4], ebx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x52fbbd
mov edx, dword [esp + 0x74]
mov eax, dword [edx]
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x52faa2
mov ecx, dword [esp + 0x1c]
cmp dword [0x642880], eax
je 0x52fb80
mov edx, 1
jmp 0x52fbb0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], eax
mov edx, dword [0x642884]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004049c0
movzx eax, byte [esp + 0xc]
xor eax, 1
mov ecx, dword [esp + 0x48]
mov edx, eax
mov eax, dword [esp + 0x2c]
test dl, dl
je 0x52faa2
jmp 0x52fc57
mov dword [esp + 0x44], edx
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], eax
call fcn.0052f9a0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x52faa2
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x44]
mov dword [esp], edx
call eax
movzx eax, byte [esp + 4]
test al, al
je 0x52fc63
mov eax, dword [esp + 0x30]
cmp dword [0x642880], eax
je 0x52fc25
mov ecx, 1
jmp 0x52fc4d
mov ecx, dword [0x642884]
mov dword [esp], eax
mov edx, dword [esp + 0x4c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004049c0
movzx eax, byte [esp + 0xc]
xor eax, 1
mov ecx, eax
mov eax, dword [esp + 0x30]
test cl, cl
je 0x52faa2
jmp 0x52fc67
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x60
ret
mov eax, dword [esp + 0x30]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x7c], eax
add esp, 0x60
ret
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x60
ret
call fcn.00467f80
jmp fcn.0052f9a0