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

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x40
mov eax, dword [rcx + 0xa8]
xor r13d, r13d
mov rbp, qword [rcx + 0xf0]
mov rbx, rcx
mov r15d, dword [rcx + 0xa4]
mov r14, rdx
mov dword [rcx + 8], r13d
xor sil, sil
mov rcx, rbp
mov dword [rsp + 0x90], eax
mov dword [r11 + 8], r13d
mov qword [r11 + 0x20], r13
call fcn.1400516f0
mov rdi, rax
cmp qword [rbx + 0xf8], rax
je 0x140050f12
mov qword [rbx + 0xf8], rax
mov sil, 1
mov qword [rsp + 0x88], r12
cmp byte [rbx + 0xc], r13b
jne 0x140050fd8
call fcn.140051790
cmp dword [rax], r13d
je 0x140050fd8
mov r12, qword [rbx + 0x288]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x80]
call fcn.140051520
mov dword [rbx + 8], eax
test eax, eax
jne 0x1400511a8
mov r9, qword [rsp + 0x98]
lea rcx, [rdi + 0x238]
mov r8d, dword [rsp + 0x80]
mov edx, dword [rdi + 0x228]
call qword [r12 + 0x18]
test al, al
je 0x140050fa1
mov r9, qword [rsp + 0x98]
mov rdx, rdi
mov r8d, dword [rsp + 0x80]
mov rcx, qword [rbp + 0x320]
call qword [r12 + ioctlsocket]
mov sil, 1
mov rax, qword [rdi + 0x240]
mov qword [rbx + 0x68], rax
mov byte [rbx + 0x61], r13b
mov eax, dword [rdi + 0x228]
mov dword [rbx + 0x90], eax
mov eax, dword [rsp + 0x80]
mov dword [rbx + 0x94], eax
mov rax, qword [rsp + 0x98]
mov qword [rbx + 0x98], rax
mov rcx, rbp
call fcn.140051580
mov edi, dword [rbx + 0x5c]
cmp edi, eax
je 0x140050fef
mov dword [rbx + 0x5c], eax
mov sil, 1
mov edi, eax
movzx eax, byte [rbx + 0x10]
and al, 1
mov byte [rbx + 0x100], al
mov rax, qword [r14]
cmp rax, qword [rbx + 0x14]
jne 0x14005100e
mov rax, qword [r14 + 8]
cmp rax, qword [rbx + 0x1c]
je 0x140051043
movups xmm0, xmmword [r14]
mov sil, 1
movups xmmword [rbx + 0x14], xmm0
mov qword [rbx + 0x24], r13
movups xmm0, xmmword [r14]
movups xmmword [rbx + 0x2c], xmm0
movsd xmm1, qword [r14 + 0x10]
movsd qword [rbx + 0x3c], xmm1
mov dword [rbx + 0x50], 0x10000
mov qword [rbx + 0x44], 0x10000
mov dword [rbx + 0x4c], r13d
mov ecx, dword [rbx + 0x10]
mov eax, ecx
and eax, 2
cmp byte [rbx + 0x102], al
je 0x140051060
shr ecx, 1
and cl, 1
mov byte [rbx + 0x102], cl
jmp 0x140051069
test sil, sil
je 0x1400511a8
mov esi, dword [rbx + 0xa0]
mov eax, 0x3e8
test esi, esi
mov rcx, rbp
cmove esi, eax
mov eax, 0x40000
cmp edi, eax
cmovl edi, eax
mov eax, 0x3e80000
cdq
idiv esi
mov r14d, eax
call fcn.1400516d0
mov dword [rbx + 0x124], eax
mov r12d, 0x4b0000
test eax, eax
jg 0x1400510b7
mov edx, r14d
mov ecx, r12d
call fcn.140011c00
mov dword [rbx + 0x124], eax
test r15d, r15d
jle 0x1400510e3
shl esi, 0x10
mov edx, edi
mov ecx, esi
call fcn.140011c00
cmp r15d, eax
jg 0x1400510d9
mov edx, edi
mov ecx, esi
call fcn.140011c00
mov r15d, eax
mov eax, dword [rbx + 0x124]
xor cl, cl
jmp 0x1400510ed
movzx ecx, byte [rbx + 0x102]
mov r15d, r13d
lea r13, [rbx + 0x104]
mov r8d, eax
mov qword [rsp + 0x30], r13
lea r9, [rbx + 0x12c]
mov byte [rsp + 0x28], cl
mov edx, edi
mov ecx, r14d
mov dword [rsp + 0x20], r15d
call fcn.1400508b0
mov rcx, rbp
call fcn.1400516b0
test eax, eax
jle 0x14005112c
add eax, eax
cmp dword [rbx + 0x124], eax
jg 0x140051132
mov r12d, 0x6e0000
mov edx, r14d
mov ecx, r12d
call fcn.140011c00
mov ecx, dword [rsp + 0x90]
lea r9, [rbx + 0x130]
mov dword [rbx + 0x128], eax
mov edx, edi
movzx r8d, byte [rbx + 0x102]
mov qword [rsp + 0x30], r13
mov byte [rsp + 0x28], r8b
mov r8d, eax
mov dword [rsp + 0x20], ecx
mov ecx, r14d
call fcn.1400508b0
cmp dword [rbx + 0x12c], 0
jne 0x14005118a
cmp dword [rbx + 0x130], 0
jne 0x14005118a
xor al, al
jmp 0x14005118c
mov al, 1
mov byte [rbx + 0x101], al
lea rcx, [rbx + 0x138]
mov rdx, rbx
mov byte [rbx + 0x134], 0
call fcn.140050200
mov r12, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret