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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50ff7b
add esp, 0xffffff80
mov eax, 0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov byte [esp + 0x2f], 0
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov eax, dword [esp + 0x84]
test eax, eax
je 0x50ff59
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x88]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 0x18]
lea esi, [esp + 4]
lea edi, [esp + 0x44]
call fcn.004612ce
test al, al
jne 0x50feed
lea edi, [esp + 0x58]
xor eax, eax
call fcn.00460de8
lea edi, [esp + 0x58]
call fcn.00460de8
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x5c], edx
lea ebx, [0xb042c0]
mov dword [esp], ebx
call fcn.0040bd00
mov edi, dword [esp + 4]
mov dword [esp + 0x38], edi
mov ecx, dword [0x10fd360]
lea edx, [edi + 0x24]
test ecx, ecx
jne 0x50fea9
lea esi, [esp + 0x58]
call fcn.004612b0
mov edi, edx
lea esi, [esp + 0x8c]
call fcn.004612ce
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
lea eax, [0xc86a40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
call fcn.0050f330
mov edi, esp
lea esi, [esp + 0x8c]
call fcn.004612ce
call fcn.0048c0b0
mov eax, dword [esp + 0x14]
test eax, eax
setbe cl
mov edx, dword [esp + 0x18]
test edx, edx
sete bl
xchg ebp, ebx
setl bl
xchg ebp, ebx
and ebx, ecx
or ebp, ebx
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x50fd77
mov eax, dword [esp + 0x38]
mov dword [esp], eax
mov byte [esp + 4], 1
mov ecx, dword [0x10d7cb8]
mov edx, dword [0x10d7cbc]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
call fcn.00510150
lea eax, [0xacdfc0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
lea ecx, [0x510870]
mov dword [eax], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x50fd61
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
lea edx, [0xc8aa20]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
sub esp, 0xffffff80
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x38]
call fcn.00460b40
mov edx, eax
mov eax, ecx
mov ecx, edx
jmp 0x50fd42
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x38]
lea ecx, [eax + 8]
mov dword [esp + 0x40], ecx
mov dword [esp], ecx
call fcn.0046aed0
lea eax, [0xbd5624]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x78], eax
mov byte [esp + 0x2f], 1
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x50fe25
lea eax, [0xacdfc0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
lea ecx, [0x510910]
mov dword [eax], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x50fe0f
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
lea edx, [0xc8aa20]
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], eax
mov byte [esp + 0x2f], 0
mov eax, dword [esp + 0x78]
mov dword [esp], eax
call fcn.0046b290
sub esp, 0xffffff80
ret
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x38]
call fcn.00460b40
mov edx, eax
mov eax, ecx
mov ecx, edx
jmp 0x50fddf
lea eax, [0xacdfc0]
mov dword [esp], eax
call fcn.0040bd00
mov eax, dword [esp + 4]
lea ecx, [0x5108c0]
mov dword [eax], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x50fe97
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.004898e0
mov eax, dword [0x10fd360]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x50fe82
mov eax, dword [esp + 0x38]
mov dword [eax + 0x20], ecx
jmp 0x50fdb4
mov edx, dword [esp + 0x38]
lea edi, [edx + 0x20]
mov eax, ecx
call fcn.00460b40
mov eax, edx
jmp 0x50fdb4
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x38]
call fcn.00460b40
mov eax, ecx
jmp 0x50fe50
mov dword [esp + 0x3c], edx
lea eax, [0xb329e0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x58]
mov dword [esp + 8], eax
call fcn.00411810
lea eax, [0xb860e0]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
lea eax, [esp + 0x8c]
mov dword [esp + 8], eax
call fcn.00411810
jmp 0x50fc8c
mov edi, esp
lea esi, [esp + 0x44]
call fcn.004612ce
lea edi, [esp + 0x14]
lea esi, [esp + 0x8c]
call fcn.004612ce
call fcn.0048a020
movzx eax, byte [esp + 0x28]
test al, al
je 0x50fc24
mov eax, dword [esp + 0x84]
mov dword [esp], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 4], eax
call fcn.0050f200
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
sub esp, 0xffffff80
ret
lea eax, [0xaa9660]
mov dword [esp], eax
lea eax, [0xc72370]
mov dword [esp + 4], eax
call fcn.00433120
nop
call fcn.00432820
sub esp, 0xffffff80
ret
call fcn.0045f5f0
jmp fcn.0050fba0