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

Disassembly:
mov ecx, dword [0x85d3cc]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50f7c8
sub esp, 0x64
mov eax, 0
mov dword [esp + 0x60], eax
mov byte [esp + 0x2b], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 0xc], ecx
call fcn.00497aa0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x50f782
mov eax, dword [esp + 0x1c]
cmp eax, 3
jne 0x50f700
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call fcn.00497de0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x50f6d6
mov eax, dword [esp + 4]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], ecx
call fcn.0050e4d0
mov eax, dword [esp + 4]
test eax, eax
jne 0x50f459
movzx eax, byte [esp]
test al, al
jne 0x50f67e
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.00498650
mov eax, dword [esp + 0x14]
test eax, eax
je 0x50f47d
mov ecx, dword [esp + 0x18]
xor edx, edx
jmp 0x50f491
mov edx, dword [esp + 0xc]
test edx, edx
jbe 0x50f7b5
mov edx, dword [esp + 8]
xor eax, eax
xor ecx, ecx
test eax, eax
jne 0x50f65c
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x70]
mov dword [esp], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
call fcn.00498650
mov eax, dword [esp + 0x14]
test eax, eax
je 0x50f4c1
mov ecx, dword [esp + 0x18]
xor edx, edx
jmp 0x50f4d5
mov edx, dword [esp + 0xc]
test edx, edx
jbe 0x50f7ac
mov edx, dword [esp + 8]
xor eax, eax
xor ecx, ecx
test eax, eax
jne 0x50f63a
mov dword [esp + 0x34], 0
mov dword [esp], edx
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp + 8], 4
lea eax, [esp + 0x34]
mov dword [esp + 0xc], eax
call fcn.0049eaa0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x50f537
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x64
ret
mov eax, dword [esp + 0x34]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea ecx, [0x50f7e0]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x60], eax
mov byte [esp + 0x2b], 1
mov eax, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
call fcn.00409ab0
mov eax, dword [esp + 8]
lea ecx, [0x661ce0]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x64]
mov dword [esp], eax
call fcn.004099a0
mov eax, dword [esp + 4]
lea ecx, [0x661fe0]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea eax, [0x691220]
mov dword [esp], eax
mov dword [esp + 4], 5
lea eax, [esp + 0x50]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.004c3a60
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov byte [esp + 0x2b], 0
mov edx, dword [esp + 0x60]
mov eax, dword [edx]
call eax
add esp, 0x64
ret
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x64
ret
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x64
ret
mov dword [esp], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
lea eax, [0x691077]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 4
call fcn.00451270
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
add esp, 0x64
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x64
ret
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp], eax
call fcn.004099a0
mov eax, dword [esp + 4]
lea ecx, [0x661fe0]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
lea eax, [0x6a376f]
mov dword [esp], eax
mov dword [esp + 4], 0x3d
lea eax, [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.004c0e90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x64
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
add esp, 0x64
ret
xor eax, eax
mov ecx, eax
call fcn.00468090
xor eax, eax
mov ecx, eax
call fcn.00468090
nop
call fcn.004373e0
add esp, 0x64
ret
call fcn.00466c30
jmp fcn.0050f390