Function at 0x140102c70
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov r12, r8
mov r13, rdx
mov rsi, rcx
xor r15d, r15d
lea r14, [fcn.140063630]
mov rax, r14
cmp dword [r9], r15d
cmove rax, r15
test rax, rax
je 0x140102e62
call fcn.14018e9e0
mov rsi, qword [r12]
mov rcx, qword [rsi + 0x60]
cmp qword [rsi], 0xffffffffffffffff
je 0x140102d93
xor eax, eax
lock cmpxchg qword [rcx + 0x38], r15
je 0x140102cef
lea r8, [rsi + 0x20]
mov r9b, 1
mov rdx, qword [rsi]
mov rcx, rax
call fcn.140134830
mov rdi, qword [rsi]
cmp rdi, 0xffffffffffffffff
je 0x140102d89
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.14018e9e0
mov r15, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
test ebx, ebx
je 0x140102d89
call fcn.14018e9e0
cmp r15, rax
jne 0x140102d37
cmp r14d, 0x2733
je 0x140102d4a
call fcn.14018e9e0
cmp r15, rax
jne 0x140102d8e
cmp r14d, 0x4d5
jne 0x140102d8e
mov dword [rbp + 0x58], 0
lea r8, [rbp + 0x58]
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [rsi + 8], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call fcn.14018e9e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140102d8e
call fcn.14018e9e0
xor r15d, r15d
jmp 0x140102d98
call fcn.14018e9e0
mov rdi, 0xffffffffffffffff
mov qword [rsi], rdi
mov byte [rsi + 8], 0
mov qword [rsi + 0x10], r15
mov rbx, qword [rsi + 0x18]
mov qword [rsi + 0x18], r15
test rbx, rbx
je 0x140102de1
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140102de1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140102de1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rbx, qword [r13 + 8]
test rbx, rbx
je 0x140102e14
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140102e14
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140102e14
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rbx, qword [r12 + 8]
test rbx, rbx
je 0x140102e45
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140102e45
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140102e45
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rsp + 0xb0]
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rcx + 0x10]
test rdx, rdx
je 0x140102f9c
mov eax, dword [rdx + 8]
test eax, eax
je 0x140102f9c
nop word [rax + rax]
lea ecx, [rax + 1]
lock cmpxchg dword [rdx + 8], ecx
je 0x140102e94
test eax, eax
je 0x140102f9c
jmp 0x140102e80
mov rax, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rbx
mov r9, qword [r13]
mov r8, qword [r8]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
call fcn.1400e83a0
nop
mov rdi, 0xffffffffffffffff
test rbx, rbx
je 0x140102eee
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140102eee
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140102eee
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov dword [rbp - 0x40], r15d
call fcn.14018e9e0
mov qword [rbp - 0x38], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x50], xmm0
mov rbx, qword [rbp - 0x28]
test rbx, rbx
je 0x140102f14
lock inc dword [rbx + 8]
mov rbx, qword [rbp - 0x28]
movaps xmm6, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x50], xmm6
lea rcx, [rsi + 0xc0]
lea r8, [rbp - 0x40]
lea rdx, [rbp - 0x50]
call fcn.140166200
cmp dword [rbp - 0x40], 0
cmove r14, r15
test r14, r14
je 0x140102f5b
mov dword [rbp - 0x40], r15d
call fcn.14018e9e0
mov qword [rbp - 0x38], rax
movq rcx, xmm6
mov rax, qword [rcx]
lea rdx, [rbp - 0x40]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
test rbx, rbx
je 0x140102de1
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140102de1
mov rbx, qword [rbp - 0x28]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140102de1
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
jmp 0x140102ddd
call fcn.140091610
int3