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

Disassembly:
mov ecx, dword [0x82b814]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5f4ecb
sub esp, 0x6c
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x60]
nop
mov dword [esp], 0
mov dword [esp + 4], ecx
call fcn.00406f20
movzx eax, byte [esp + 8]
test al, al
jne 0x5f4c56
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call fcn.004700f0
cmp dword [esp + 4], 1
je 0x5f4c36
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x40]
mov edx, dword [eax + 0x60]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
lea ecx, [esp + 0x44]
mov dword [esp], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
mov byte [esp + 0x14], 1
call fcn.0044cad0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5f4c76
mov eax, dword [0x7ec560]
mov ecx, dword [0x7ec564]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x6c
ret
mov eax, dword [0x7ec590]
mov ecx, dword [0x7ec594]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x6c
ret
mov eax, dword [0x7ec560]
mov ecx, dword [0x7ec564]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x6c
ret
mov eax, dword [esp + 0x70]
lea ecx, [eax + 8]
mov dword [esp + 0x40], ecx
mov dword [esp], ecx
call fcn.00470100
mov eax, dword [esp + 4]
cmp eax, 0xfffffffe
jae 0x5f4eab
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x40]
mov dword [esp], ecx
lea ecx, [eax + 2]
mov dword [esp + 8], ecx
call fcn.00470080
movzx eax, byte [esp + 0xc]
test al, al
je 0x5f4c76
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
call fcn.005f8d90
mov eax, dword [esp + 0x70]
lea ecx, [eax + 0x38]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x30], edx
mov dword [esp], ecx
call fcn.00475060
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x30]
lea edx, [0x632b80]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
call fcn.0040feb0
mov eax, dword [esp + 0xc]
test byte [eax], al
mov ecx, dword [0x82b968]
test ecx, ecx
jne 0x5f4d24
mov ecx, dword [esp + 0x30]
jmp 0x5f4d34
call fcn.0046b940
mov ecx, dword [esp + 0x30]
mov dword [edi], ecx
mov edx, dword [eax]
mov dword [edi + 4], edx
mov dword [eax], ecx
mov eax, dword [esp + 0x70]
mov edx, dword [eax + 0x34]
lea ebx, [0x632bc0]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 8], edx
call fcn.0040feb0
mov eax, dword [esp + 0xc]
test byte [eax], al
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.004753e0
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [ecx + 0x20]
test ecx, ecx
setg cl
sete bl
test edx, edx
seta dl
and ebx, edx
or ecx, ebx
test cl, cl
je 0x5f4dd9
lea eax, [0x63d4a0]
mov dword [esp], eax
call fcn.0040d2d0
mov eax, dword [esp + 4]
lea ecx, [0x5f4f60]
mov dword [eax], ecx
mov ecx, dword [0x82b968]
test ecx, ecx
jne 0x5f4db9
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x30]
jmp 0x5f4dcb
call fcn.0046b940
mov ecx, dword [esp + 0x70]
mov dword [edi], ecx
mov edx, dword [esp + 0x30]
mov dword [edi + 4], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [esp], eax
call fcn.00445b70
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.005f9d80
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
test eax, eax
je 0x5f4e8f
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [eax + 0x40]
mov dword [esp], 0
mov dword [esp + 4], ecx
call fcn.00406f20
movzx eax, byte [esp + 8]
test al, al
jne 0x5f4e73
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x34], ecx
lea edi, [esp + 0x54]
xor eax, eax
call fcn.0046bbaa
lea ecx, [0x5f4ee0]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], 0x3f
lea ecx, [0x671987]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [esp + 8], 2
lea ecx, [esp + 0x54]
mov dword [esp + 0xc], ecx
call fcn.005eefc0
mov dword [esp + 0x74], 0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x7c], eax
add esp, 0x6c
ret
mov eax, dword [esp + 0x30]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
add esp, 0x6c
ret
mov eax, dword [0x7ec568]
mov ecx, dword [0x7ec56c]
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
add esp, 0x6c
ret
call fcn.0046a530
jmp fcn.005f4b50