Function at 0x14002af80
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xa0
mov r15, 0xffffffffffffffff
mov r14, rcx
mov rcx, qword [r8]
xor edi, edi
mov qword [rbp - 0x39], r15
mov esi, r9d
mov rbx, r8
cmp rcx, r15
je 0x14002afeb
xorps xmm0, xmm0
mov qword [rbp - 1], rdi
lea r9, [rbp - 0x11]
mov byte [rbp - 0x59], dil
mov r8b, 1
lea rdx, [rbp - 0x59]
movups xmmword [rbp - 0x11], xmm0
call fcn.140009870
mov qword [rbx], r15
mov rax, qword [r14 + 8]
lock inc dword [rax + 0x30]
mov r13, qword [rbp + 0x87]
mov r12, qword [rbp + 0x8f]
test r13, r13
je 0x14002b028
mov eax, edi
lock xadd dword [r13], eax
cmp eax, 1
jne 0x14002b028
mov rcx, qword [r14 + 8]
xor r9d, r9d
mov r8d, 0x3e3
mov rdx, r12
call fcn.14002a420
mov r8d, dword [rbp + 0x6f]
xorps xmm0, xmm0
mov edx, dword [rbp + 0x67]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov ecx, esi
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, r15
lea rcx, [rbp - 0x29]
mov rbx, rax
sete dl
call fcn.14000a290
cmp rbx, r15
je 0x14002b096
cmp esi, 0x17
jne 0x14002b092
lea r9, [rbp + 0x87]
mov dword [rbp + 0x87], edi
lea edx, [rsi + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov qword [rbp - 0x39], rbx
mov rax, qword [rbp + 0x57]
mov rax, qword [rax]
mov qword [rbp - 0x31], rax
cmp rax, r15
je 0x14002b36d
xorps xmm0, xmm0
mov qword [rbp - 0x41], rdi
mov rcx, rax
movups xmmword [rbp - 0x51], xmm0
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
lea rcx, [rbp - 0x51]
mov ebx, eax
setne dl
call fcn.14000a290
test ebx, ebx
je 0x14002b36d
mov r9, qword [0x1401c1020]
lea rbx, [0x1401c1018]
movabs rax, 0x4d54ee85da812030
mov r15d, 0x2733
add rax, r9
cmp rax, 1
jbe 0x14002b116
mov rax, qword [0x1401c1018]
mov edx, r15d
mov rcx, rbx
call qword [rax + 0x30]
mov r9, qword [0x1401c1020]
jmp 0x14002b118
mov al, 1
mov r11, qword [rbp - 0x41]
mov rsi, qword [rbp - 0x49]
mov r14d, dword [rbp - 0x51]
movzx r8d, al
movabs rax, 0x4800144005b3
add r8, 2
cmp r11, 1
jne 0x14002b188
cmp r8, r11
jne 0x14002b15c
cmp qword [rsi + 8], r9
jne 0x14002b155
cmp r14d, r15d
jne 0x14002b155
movzx eax, r11b
jmp 0x14002b20b
xor al, al
jmp 0x14002b20b
mul rsi
mov rax, rsi
mov rcx, rsi
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul r10d, ecx, 0x3e8
add r10d, r14d
jmp 0x14002b1bf
mov r10d, r14d
cmp r8, 1
jne 0x14002b1bf
mul rbx
mov rax, rbx
mov rcx, rbx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul r15d, ecx, 0x3e8
add r15d, 0x2733
cmp r10d, r15d
jne 0x14002b213
test r8, r8
jne 0x14002b1ce
mov rcx, rbx
jmp 0x14002b1dd
cmp r8, 1
lea rcx, section..data
cmovne rcx, rbx
test r11, r11
jne 0x14002b1e7
mov rax, rbx
jmp 0x14002b1f6
cmp r11, 1
lea rax, section..data
cmovne rax, rsi
mov rdx, qword [rcx + 8]
test rdx, rdx
jne 0x14002b204
cmp rax, rcx
jmp 0x14002b208
cmp qword [rax + 8], rdx
sete al
test al, al
jne 0x14002b33b
movabs rax, 0x4d54ee85da812030
mov r15d, 0x4d5
add rax, r9
cmp rax, 1
jbe 0x14002b249
mov rax, qword [0x1401c1018]
mov edx, r15d
mov rcx, rbx
call qword [rax + 0x30]
mov r9, qword [0x1401c1020]
mov r11, qword [rbp - 0x41]
jmp 0x14002b24b
mov al, 1
movzx r8d, al
add r8, 2
cmp r11, 1
jne 0x14002b2af
cmp r8, r11
jne 0x14002b279
cmp qword [rsi + 8], r9
jne 0x14002b272
cmp r14d, r15d
jne 0x14002b272
movzx eax, r11b
jmp 0x14002b337
xor al, al
jmp 0x14002b337
movabs rax, 0x4800144005b3
mov rcx, rsi
mul rsi
mov rax, rsi
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul r9d, ecx, 0x3e8
add r9d, r14d
jmp 0x14002b2f0
mov r9d, r14d
cmp r8, 1
jne 0x14002b2f0
movabs rax, 0x4800144005b3
mov rcx, rbx
mul rbx
mov rax, rbx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul r15d, ecx, 0x3e8
add r15d, 0x4d5
cmp r9d, r15d
jne 0x14002b369
test r8, r8
jne 0x14002b2ff
mov rax, rbx
jmp 0x14002b30e
cmp r8, 1
lea rax, section..data
cmovne rax, rbx
test r11, r11
je 0x14002b322
cmp r11, 1
lea rbx, section..data
cmovne rbx, rsi
mov rcx, qword [rax + 8]
test rcx, rcx
jne 0x14002b330
cmp rbx, rax
jmp 0x14002b334
cmp qword [rbx + 8], rcx
sete al
test al, al
je 0x14002b369
mov rcx, qword [rbp - 0x31]
lea r8, [rbp - 0x55]
mov edx, 0x8004667e
mov dword [rbp - 0x55], edi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
lea rcx, [rbp - 0x51]
setne dl
call fcn.14000a290
mov r14, qword [rbp + 0x47]
mov rcx, qword [rbp - 0x39]
xor r9d, r9d
mov rax, qword [rbp + 0x57]
mov qword [rax], rcx
cmp rcx, 0xffffffffffffffff
jne 0x14002b393
mov rcx, qword [r14 + 8]
lea r8, [rbp - 0x29]
mov rdx, r12
call fcn.14002a320
jmp 0x14002b411
mov rsi, qword [rbp + 0x4f]
lea rax, [rbp + 0x47]
mov r8, qword [rbp + 0x77]
mov rdx, rcx
mov qword [rsp + 0x38], r12
mov rcx, rsi
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x7f]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rbp + 0x47], edi
call sub.MSWSOCK.dll_AcceptEx
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x14002b3e9
cmp eax, 0x3e5
je 0x14002b3e9
mov rcx, qword [r14 + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, r12
call fcn.14002a420
jmp 0x14002b411
test r13, r13
je 0x14002b405
lock xadd dword [r13], edi
cmp edi, 1
jne 0x14002b405
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CancelIoEx]
mov rcx, qword [r14 + 8]
mov rdx, r12
call fcn.14002a4c0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret