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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5d6651
sub esp, 0x68
lea edi, [esp + 0x50]
xor eax, eax
call fcn.0045eb7a
lea ecx, [0x60bd00]
mov dword [esp + 0x50], ecx
lea ecx, [0x60bca0]
mov dword [esp + 0x58], ecx
lea ecx, [0x60b740]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x6c]
test ecx, ecx
je 0x5d64ca
nop
movzx edx, byte [0x7c0510]
test dl, dl
je 0x5d6497
mov edx, dword [esp + 0x6c]
mov dword [0x7c0514], edx
mov edx, dword [0x7e77b0]
test edx, edx
jne 0x5d6486
mov eax, dword [esp + 0x70]
mov dword [0x7c0518], eax
jmp 0x5d649b
lea edi, [0x7c0518]
mov eax, dword [esp + 0x70]
call fcn.0045e950
jmp 0x5d649b
mov eax, dword [esp + 0x70]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x48]
test ecx, ecx
je 0x5d64c2
nop
movzx edx, byte [ecx + 0xf]
mov ebx, edx
and edx, 0x1f
test bl, 0x20
jne 0x5d64d0
or edx, 0x80
jmp 0x5d64d0
xor edx, edx
xor ecx, ecx
xor eax, eax
jmp 0x5d64d0
xor edx, edx
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004bae60
mov eax, dword [esp + 0xc]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], ecx
xor edx, edx
jmp 0x5d650f
mov ebx, dword [esp + 0x28]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
cmp edx, 3
jge 0x5d663d
mov dword [esp + 0x28], edx
lea ebx, [esp + edx*8 + 0x50]
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
test ebp, ebp
je 0x5d6591
nop
movzx esi, byte [0x7c0510]
xchg esi, eax
test al, al
xchg esi, eax
je 0x5d6560
mov dword [0x7c0514], ebp
mov esi, dword [0x7e77b0]
test esi, esi
jne 0x5d654f
mov dword [0x7c0518], ebx
jmp 0x5d6560
lea edi, [0x7c0518]
mov esi, eax
mov eax, ebx
call fcn.0045e950
mov eax, esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebx
mov ebp, dword [esp + 0x40]
test ebp, ebp
je 0x5d6589
nop
movzx esi, byte [ebp + 0xf]
mov edi, esi
and esi, 0x1f
xchg edi, eax
test al, 0x20
xchg edi, eax
jne 0x5d6597
or esi, 0x80
jmp 0x5d6597
xor esi, esi
xor ebp, ebp
xor ebx, ebx
jmp 0x5d6597
xor esi, esi
xor ebp, ebp
xor ebx, ebx
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
call fcn.004bae60
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x24]
mov ebx, dword [edx + 0x24]
mov ebp, dword [esp + 0x34]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call ebx
movzx eax, byte [esp + 0xc]
test al, al
je 0x5d6500
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
call fcn.004bbe00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov byte [esp + 0xc], 1
call fcn.004b8b90
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x68
ret
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x68
ret
call fcn.0045d540
jmp fcn.005d6410