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

Disassembly:
mov ecx, dword [0x8c8600]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5d3989
sub esp, 0x40
lea eax, [0x6c0100]
mov dword [esp], eax
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x4c]
lea ebx, [edx + ecx]
mov ebp, dword [esp + 0x6c]
lea ebx, [ebp + ebx + 9]
mov dword [esp + 0x2c], ebx
mov dword [esp + 8], ebx
call fcn.004726e0
mov eax, dword [esp + 0xc]
mov dword [esp], eax
mov dword [esp + 4], 0
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
movzx eax, word [esp + 0x74]
mov word [esp + 0xc], ax
call fcn.004e5920
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [eax + 7]
mov ebx, dword [esp + 0x10]
cmp ecx, edx
jae 0x5d3747
mov dword [esp + 0x28], eax
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 7
lea eax, [0x6c0100]
mov dword [esp + 0x10], eax
call fcn.00472770
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov dword [ebx + eax], 0x454b5048
mov dword [ebx + eax + 3], 0x31762d45
mov eax, dword [esp + 0x4c]
lea ebp, [eax + edx]
cmp ecx, ebp
jae 0x5d3797
mov dword [esp + 0x28], edx
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
lea ecx, [0x6c0100]
mov dword [esp + 0x10], ecx
call fcn.00472770
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ecx
add edx, ebx
mov dword [esp], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.00477ad0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x64]
lea edx, [ecx + eax]
mov ebx, dword [esp + 0x2c]
cmp ebx, edx
jb 0x5d37d2
mov ebp, dword [esp + 0x38]
jmp 0x5d380c
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea eax, [0x6c0100]
mov dword [esp + 0x10], eax
call fcn.00472770
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ebp, ebx
mov ebx, ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
add eax, ebp
mov dword [esp], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00477ad0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
lea edx, [ecx + eax]
mov ebx, dword [esp + 0x2c]
cmp ebx, edx
jb 0x5d3847
mov ebp, dword [esp + 0x38]
jmp 0x5d387d
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea eax, [0x6c0100]
mov dword [esp + 0x10], eax
call fcn.00472770
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
add eax, ebp
mov dword [esp], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.00477ad0
lea eax, [0x6c0100]
mov dword [esp], eax
movzx eax, word [esp + 0x74]
movzx eax, ax
mov dword [esp + 0x24], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.004726e0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], 0
lea ecx, [0x5d4e10]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x30]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ecx
call fcn.005d2fa0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 8], edx
mov dword [esp + 0xc], edx
call eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5d3970
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jne 0x5d3970
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
add esp, 0x40
ret
lea eax, [0x6c0080]
mov dword [esp], eax
lea eax, [0x733fd0]
mov dword [esp + 4], eax
call fcn.00470a40
nop
call fcn.00475ee0
jmp fcn.005d3690