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

Disassembly:
mov ecx, dword [0x99504c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5beb8a
sub esp, 0x64
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x5be878
xor ecx, ecx
jmp 0x5be88b
movzx ecx, byte [ecx]
test cl, cl
je 0x5be886
mov ecx, 0xffffffff
jmp 0x5be88b
mov ecx, 1
test ecx, ecx
je 0x5beb7e
mov ecx, dword [esp + 0x78]
mov edx, dword [ecx + 8]
test edx, edx
jne 0x5be8a2
xor edx, edx
jmp 0x5be8b5
movzx edx, byte [ecx]
test dl, dl
je 0x5be8b0
mov edx, 0xffffffff
jmp 0x5be8b5
mov edx, 1
test edx, edx
jle 0x5be8d0
mov edx, dword [eax + 4]
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.004ec260
mov eax, dword [esp + 8]
test eax, eax
jl 0x5be8dc
mov byte [esp + 0x80], 0
add esp, 0x64
ret
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5be8eb
xor ecx, ecx
jmp 0x5be8fe
movzx ecx, byte [eax]
test cl, cl
je 0x5be8f9
mov ecx, 0xffffffff
jmp 0x5be8fe
mov ecx, 1
test ecx, ecx
jle 0x5be91d
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 4]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004ec260
mov eax, dword [esp + 8]
test eax, eax
jl 0x5be929
mov byte [esp + 0x80], 0
add esp, 0x64
ret
mov byte [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x54]
mov dword [esp], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004ee530
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5beb72
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
call fcn.004f2d80
mov eax, dword [esp + 0xc]
test eax, 7
je 0x5be9ac
mov byte [esp + 0x80], 0
add esp, 0x64
ret
mov byte [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0x6c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x14], eax
call fcn.004f6480
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], eax
mov byte [esp + 0x44], 0
mov byte [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
lea eax, [esp + 0x34]
mov dword [esp], eax
lea eax, [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
call fcn.004ebce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 4]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004ec050
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov ecx, dword [esp + 0x78]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004ebce0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x68]
mov edx, dword [ecx + 4]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004ec050
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
mov ebx, dword [esp + 0x30]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov byte [esp + 0x10], 0
call fcn.004ec6a0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x2c]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov byte [esp + 0x10], 0
call fcn.004ec6a0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp + 8], ecx
call fcn.004ebce0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
mov dword [esp], edx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.004ec050
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x24]
mov dword [esp], ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004ec050
mov eax, dword [esp + 0x24]
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], eax
call fcn.004ec260
mov eax, dword [esp + 8]
test eax, eax
sete al
mov byte [esp + 0x80], al
add esp, 0x64
ret
mov byte [esp + 0x80], 0
add esp, 0x64
ret
mov byte [esp + 0x80], 0
add esp, 0x64
ret
call fcn.00467a60
jmp fcn.005be850