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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x56f922
push eax
mov eax, dword [esp + 0x20]
mov dword fs:[0], esp
sub esp, 0x9c
test eax, eax
push ebp
mov ebp, dword [esp + 0xb4]
push edi
mov edi, ecx
jne 0x50f2e9
test ebp, ebp
jne 0x50f2e9
xor al, al
jmp 0x50f6e1
push esi
lea ecx, [esp + 0x58]
call fcn.0050cba0
mov esi, dword [esp + 0xb8]
push esi
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
mov dword [esp + 0xb8], 0
call fcn.0050d9f0
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x5c]
call fcn.0050cfe0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb4], 1
call fcn.004071e0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xb0], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50f35a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0x14]
push ebx
push eax
push ecx
push ebp
push edx
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.0050f070
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
mov ebx, 8
push ebx
lea ecx, [edi + 8]
mov byte [esp + 0xc0], 4
call fcn.0050d8e0
test eax, eax
je 0x50f474
mov eax, dword [eax + 4]
mov dword [eax + 8], ebx
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
push ecx
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, eax
mov ebp, eax
call dword [edx + 4]
lea ecx, [esp + 0x5c]
call fcn.0050d1f0
test al, al
je 0x50f47b
test ebp, ebp
je 0x50f3dd
mov edx, dword [ebp]
push 0
mov ecx, ebp
call dword [edx + 8]
mov eax, dword [esp + 0x10]
push eax
call fcn.00515710
mov esi, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x5c]
call fcn.0050d080
push eax
push esi
call fcn.00510a20
add esp, 8
test ebp, ebp
je 0x50f40d
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xc]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50f433
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50f459
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x5c]
mov dword [esp + 0xb4], 0xffffffff
call fcn.0050cc10
mov al, 1
jmp 0x50f6df
xor ebp, ebp
jmp 0x50f3be
test ebp, ebp
je 0x50f48c
mov ecx, dword [esp + 0x78]
mov eax, dword [ebp]
push ecx
mov ecx, ebp
call dword [eax + 8]
push esi
mov ecx, edi
call fcn.0050e3e0
test al, al
mov eax, dword [esp + 0x10]
jne 0x50f4ff
add eax, 0xfffffff0
mov byte [esp + 0xb4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50f4be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50f4e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x5c]
mov dword [esp + 0xb4], 0xffffffff
call fcn.0050cc10
xor al, al
jmp 0x50f6df
push eax
lea ecx, [esp + 0x48]
call fcn.0050dc00
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0xb8], 5
call fcn.0050e910
mov eax, dword [eax]
push eax
mov byte [esp + 0xb8], 6
call fcn.00515710
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0xb4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50f558
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push 0x1021
push eax
lea ecx, [esp + 0x38]
call fcn.0050d270
mov ecx, dword [esp + 0xcc]
push 0
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0xbc], 7
call fcn.0050f8e0
mov eax, dword [esp + 0x28]
mov byte [esp + 0xb4], bl
mov dword [esp + 0x14], 0
lea esp, [esp]
mov edx, dword [esp + 0x24]
push eax
push edx
mov ecx, edi
call fcn.0050dec0
mov esi, eax
test esi, esi
je 0x50f5d3
mov eax, dword [esp + 0x24]
push esi
push eax
lea ecx, [esp + 0x3c]
call fcn.00555e49
test ebp, ebp
je 0x50f5d3
mov edx, dword [ebp]
push esi
mov ecx, ebp
call dword [edx + 0x10]
test al, al
je 0x50f5dd
mov eax, dword [esp + 0x28]
cmp esi, eax
je 0x50f5a0
jmp 0x50f605
cmp esi, dword [esp + 0x28]
jne 0x50f5fd
mov eax, dword [esp + 0x24]
push 1
push eax
mov ecx, edi
call fcn.0050dec0
test eax, eax
mov dword [esp + 0x14], 0x69
jne 0x50f605
mov dword [esp + 0x14], 0x6a
lea ecx, [esp + 0x30]
push ecx
mov ecx, edi
call fcn.0050e520
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
jne 0x50f62b
cmp dword [esp + 0x14], 0x6a
jne 0x50f62b
mov dword [esp + 0x14], 0x69
test ebp, ebp
je 0x50f637
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0xc]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x50f64a
mov ecx, dword [esp + 0x10]
push ecx
push eax
call fcn.0050d670
lea ecx, [esp + 0x20]
mov byte [esp + 0xb4], 7
call fcn.0050f910
lea ecx, [esp + 0x30]
mov byte [esp + 0xb4], 5
call fcn.00510ed0
lea ecx, [esp + 0x44]
mov byte [esp + 0xb4], 4
call fcn.00512cf0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x50f6a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xb4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x50f6c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x5c]
mov dword [esp + 0xb4], 0xffffffff
call fcn.0050cc10
mov al, bl
pop ebx
pop esi
mov ecx, dword [esp + 0xa4]
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0xa8
ret 0x14