Function at 0x140147360
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x1405e3440]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r12, rcx
mov rsi, r9
mov rcx, r8
mov r15, r8
mov rbx, rdx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14014762e
mov eax, dword [r15 + 0x4c]
cmp eax, 0x7fffffff
je 0x14014761d
mov rcx, rbx
call fcn.1403adbc0
mov rcx, r15
mov rbx, rax
call sub.MSVCP140.dll__Mtx_unlock
test rbx, rbx
je 0x140147618
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], 1
mov edx, 0x8004667e
mov rcx, r12
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor edx, edx
mov ecx, r12d
call fcn.140213c60
xor r9d, r9d
mov rcx, rax
mov r13, rax
lea edx, [r9 + 0x66]
lea r8d, [r9 + 1]
call fcn.140211d50
mov r8, r13
mov rdx, r13
mov rcx, rbx
call fcn.1403ae040
mov r9, qword [rsp + 0x2c0]
add r9, 8
cmp qword [r9 + 0x18], 0xf
jbe 0x14014742f
mov r9, qword [r9]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 0x37]
call fcn.1403ad390
mov rdi, qword [rsi]
cmp byte [rdi + 0x3c8], 0
je 0x140147492
lea rax, [rsp + 0x30]
mov byte [rsp + 0x30], 1
lea rcx, [rdi + 0x468]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rdi
call fcn.14013ef10
cmp byte [rsp + 0x30], 0
jne 0x140147485
mov rax, qword [rsi + 8]
mov dword [rax], 9
jmp 0x140147564
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.1403ae5a0
mov rax, qword [rdi + 0x178]
lea r8, [0x1403ad2e0]
mov rcx, qword [rsi + 0x10]
mov rdx, rbx
mov r9, qword [rdi + 0x170]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx]
call fcn.1401472c0
test al, al
jne 0x1401474ce
mov rax, qword [rsi + 8]
mov dword [rax], 8
jmp 0x140147564
cmp byte [rdi + 0x3c8], 0
je 0x1401475eb
mov rcx, rbx
call fcn.1403ada50
mov dword [rdi + 0x488], eax
test eax, eax
jne 0x14014755a
mov rcx, rbx
call fcn.1403ad7c0
mov rbp, rax
test rax, rax
je 0x14014755a
mov rdx, rax
mov rcx, rdi
call fcn.140203e90
test al, al
jne 0x1401475e3
mov rcx, rbp
call fcn.1402198d0
test rax, rax
je 0x140147552
mov r9d, 0x200
lea r8, [rsp + 0x50]
mov edx, reloc.WS2_32.dll_listen
mov rcx, rax
call fcn.14021a020
cmp eax, 0xffffffff
je 0x140147552
movsxd r8, eax
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14016bcf0
test al, al
jne 0x1401475e3
mov rcx, rbp
call fcn.140218a90
mov rax, qword [rsi + 8]
mov dword [rax], 0xa
mov rcx, rbx
call fcn.1403ae5d0
mov rcx, r15
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14014762e
mov eax, dword [r15 + 0x4c]
cmp eax, 0x7fffffff
je 0x14014761d
mov rcx, rbx
call fcn.1403ad4f0
mov rcx, r15
call sub.MSVCP140.dll__Mtx_unlock
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], 0
mov edx, 0x8004667e
mov rcx, r12
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140487ca0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x260
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbp
call fcn.140218a90
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
lea edx, [r9 + 0x66]
call fcn.140211d50
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], 0
mov edx, 0x8004667e
mov rcx, r12
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rax, rbx
jmp 0x1401475b8
dec eax
mov ecx, 6
mov dword [r15 + 0x4c], eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3