Function at 0x140102360
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x140
movaps xmmword [rax - 0x48], xmm6
mov r13, r8
mov r12, rdx
mov r14, rcx
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1400ad260
lea rsi, [r14 + 8]
cmp qword [rsi], 0xffffffffffffffff
jne 0x14010257c
movzx ebx, word [r12]
mov eax, 0x17
mov r15d, 2
cmp bx, r15w
cmovne r15d, eax
mov r12, qword [r14]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], edx
xor r9d, r9d
lea edx, [rax - 0x16]
lea r8d, [rax - 0x11]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140102432
lea rcx, [rsp + 0x40]
call fcn.1400ad2a0
xor ecx, ecx
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x48], rax
cmp bx, 2
je 0x14010242b
mov dword [rbp + 0x98], ecx
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x98]
lea edx, [rcx + 0x29]
lea r8d, [rcx + 0x1b]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
movaps xmm6, xmmword [rsp + 0x40]
jmp 0x14010245d
call fcn.1400af580
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rbx
mov edx, eax
lea rcx, [rbp - 0x58]
call fcn.1400ad280
movups xmm6, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm6
mov rdi, 0xffffffffffffffff
cmp rdi, 0xffffffffffffffff
jne 0x14010246e
movdqa xmmword [rsp + 0x50], xmm6
jmp 0x140102535
mov rdx, qword [r12 + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdx + 0x28]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x1401024a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400af580
mov r8, rax
mov edx, ebx
lea rcx, [rbp - 0x80]
call fcn.1400ad280
jmp 0x1401024b2
lea rcx, [rsp + 0x60]
call fcn.1400ad260
movups xmm6, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm6
movdqa xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x50]
call fcn.1400ad300
test al, al
je 0x1401024fc
movdqa xmmword [rsp + 0x50], xmm6
lea rcx, [rbp - 0x68]
call fcn.1400ad260
mov byte [rbp + 0x80], 0
lea r9, [rbp - 0x68]
mov r8b, 1
lea rdx, [rbp + 0x80]
mov rcx, rdi
call fcn.1400fbde0
jmp 0x140102535
mov qword [rbp + 0x80], 0xffffffffffffffff
mov qword [rsi], rdi
mov byte [rsi + 8], reloc.WS2_32.dll_recv
lea rcx, [rsi + 0x10]
movzx r8d, byte [rbp + 0x80]
call fcn.1400fa230
lea rcx, [rbp - 0x68]
call fcn.1400ad260
movups xmm6, xmmword [rax]
movaps xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x50]
call fcn.1400ad300
mov r12, qword [rbp + 0x88]
test al, al
jne 0x140102581
mov dword [rsi + 0x38], r15d
mov byte [rsi + 0x3c], al
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x60], 2
xor eax, eax
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rsi + 0x40], xmm0
unpckhpd xmm1, xmm1
movsd qword [rsi + 0x50], xmm1
mov dword [rsi + 0x58], eax
jmp 0x140102581
movaps xmm6, xmmword [rsp + 0x40]
lea r15, [r14 + 0x68]
lea rcx, [rsp + 0x40]
call fcn.1400ad300
test al, al
je 0x1401025d0
mov rdx, r13
lea rcx, [rbp - 0x48]
call fcn.140103b00
movups xmmword [rbp + 0x18], xmm6
lea rdx, [rbp - 0x48]
mov rcx, r15
call fcn.1401026d0
nop
lea rcx, [rbp - 8]
call fcn.1400c8cb0
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1401026ac
call fcn.1400ad0f0
jmp 0x1401026ac
mov rdi, qword [r14]
mov qword [rbp - 0x80], r13
lea rdx, [r13 + 0x38]
mov ecx, 0x108
call fcn.1400fb870
mov qword [rbp - 0x78], rax
xor r14d, r14d
mov qword [rbp - 0x70], r14
mov rdx, rax
mov ecx, 0x108
call fcn.1400accf0
mov rbx, rax
mov rdx, qword [rsi]
lea rcx, [rsp + 0x60]
call fcn.1400ad260
mov qword [rbx + 0x20], r14
lea rcx, [0x140105330]
mov qword [rbx + 0x28], rcx
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r14
mov dword [rbx + 0x30], r14d
movups xmm0, xmmword [rax]
movups xmmword [rbx + 0x38], xmm0
mov qword [rbx + 0x48], r14
mov qword [rbx + 0x50], r14
lea rax, [0x1400fdec0]
mov qword [rbx + 0x58], rax
mov qword [rbx + 0x60], rdx
mov byte [rbx + 0x68], r14b
lea rcx, [rbx + 0x70]
mov rdx, r13
call fcn.140103b00
lea rcx, [rbx + 0xd0]
mov r9, r15
call fcn.1401055d0
mov qword [rbp - 0x70], rbx
mov eax, reloc.WS2_32.dll_recv
mov ecx, 0x1c
cmp word [r12], 2
cmovne eax, ecx
lea rcx, [rdi + 0x28]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9d, [r14 + 1]
mov r8d, dword [rsi + 0x38]
mov rdx, rsi
call fcn.1400fe210
nop
mov rbx, qword [rsp + 0x190]
movaps xmm6, xmmword [rsp + 0x130]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret