Function at 0x1400723a0
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xd0
mov qword [rbp - 0x31], 0xfffffffffffffffe
mov qword [rsp + 0x128], rbx
mov rax, qword [0x1403284b0]
xor rax, rsp
mov qword [rbp + 7], rax
mov r12d, r8d
mov r15, rdx
mov rsi, rcx
mov r13, qword [rbp + 0x6f]
mov rdi, qword [rbp + 0x7f]
xor ebx, ebx
cmp r8d, 2
je 0x1400723f9
cmp r8d, 0x17
jne 0x140072567
lea eax, [r9 - 1]
test eax, 0xfffffffb
jne 0x140072567
xor eax, eax
lea ecx, [rax + 0x10]
lock cmpxchg qword [rsi + 0x18], rbx
mov r14, rax
mov qword [rbp - 0x61], rax
jne 0x14007248f
mov dword [rbp - 0x29], 0x25a207b9
mov dword [rbp - 0x25], 0x4660ddf3
mov dword [rbp - 0x21], 0xe576e98e
mov dword [rbp - 0x1d], 0x3e06748c
mov dword [rbp - 0x59], ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea rax, [rbp - 0x59]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
mov r9d, ecx
lea r8, [rbp - 0x29]
mov edx, 0xc8000006
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rbp - 0x61]
test eax, eax
cmovne rcx, rsi
mov qword [rbp - 0x61], rcx
xchg qword [rsi + 0x18], rcx
mov r14, qword [rbp - 0x61]
mov ecx, reloc.WS2_32.dll_recv
cmp r14, rsi
cmove r14, rbx
test r14, r14
je 0x140072567
xor eax, eax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov dword [rbp - 1], eax
mov word [rbp - 0x19], r12w
mov r8d, 0x1c
cmp r12d, 2
cmove r8, rcx
lea r9, [rdi + 0x38]
lea rdx, [rbp - 0x19]
mov rcx, qword [r15]
call fcn.1400700e0
mov eax, dword [rdi + 0x38]
test eax, eax
je 0x1400724fe
cmp eax, 0x2726
jne 0x1400724f5
mov rax, qword [rdi + 0x40]
movabs rcx, 0x8fafd21e25c5e09b
cmp qword [rax + 8], rcx
je 0x1400724fe
mov rcx, qword [rsi + 8]
jmp 0x1400725e8
mov byte [rdi + 0x60], 1
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
mov qword [rsp + 0x30], rdi
xor r12d, r12d
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8d, dword [rbp + 0x77]
mov rdx, r13
mov rcx, qword [r15]
call r14
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140072556
cmp eax, 0x3e5
je 0x140072556
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.14006fd60
jmp 0x1400725f4
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.14006fcc0
jmp 0x1400725f4
xor eax, eax
lock cmpxchg qword [rsi + 0x10], rbx
mov r14, rax
jne 0x1400725ab
mov rax, qword [rsi]
mov r10, qword [rax]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x41], xmm0
xor edx, edx
lea rcx, [rbp - 0x41]
call fcn.1400844f0
mov r9, qword [r10 + 0x28]
lea r8, [0x140084520]
lea rdx, [rbp - 0x41]
mov rcx, r10
call fcn.140022480
mov r14, rax
xchg qword [rsi + 0x10], rax
lea rsi, [0x1402c41e8]
test byte [r15 + 8], 3
jne 0x14007267b
mov rbx, qword [r15]
cmp rbx, 0xffffffffffffffff
jne 0x14007261b
mov dword [rbp - 0x71], 0x2719
mov byte [rbp - 0x6d], 1
lea rsi, [0x1402c41e8]
mov qword [rbp - 0x69], rsi
movups xmm0, xmmword [rbp - 0x71]
movups xmmword [rdi + 0x38], xmm0
mov rcx, qword [r14 + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, rdi
call fcn.140023450
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1402225a0
mov rbx, qword [rsp + 0x128]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rbp - 0x55], 1
lea r8, [rbp - 0x55]
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x71], eax
test eax, eax
setne byte [rbp - 0x6d]
mov qword [rbp - 0x69], rsi
movups xmm0, xmmword [rbp - 0x71]
movups xmmword [rdi + 0x38], xmm0
test ebx, ebx
js 0x1400725e4
xor r12d, r12d
mov dword [rbp - 0x71], r12d
mov byte [rbp - 0x6d], r12b
mov qword [rbp - 0x69], rsi
movups xmm0, xmmword [rbp - 0x71]
movups xmmword [rdi + 0x38], xmm0
or byte [r15 + 8], 2
jmp 0x14007267e
xor r12d, r12d
lea r9, [rdi + 0x38]
mov r8, qword [rbp + 0x77]
mov rdx, r13
mov rcx, qword [r15]
call fcn.1400701a0
test eax, eax
je 0x1400725e4
mov edx, dword [rdi + 0x38]
movabs rcx, 0x8fafd21e25c5e09b
cmp edx, 0x2734
jne 0x1400726b8
mov rax, qword [rdi + 0x40]
cmp qword [rax + 8], rcx
je 0x1400726d2
cmp edx, 0x2733
jne 0x1400725e4
mov rax, qword [rdi + 0x40]
cmp qword [rax + 8], rcx
jne 0x1400725e4
mov dword [rbp - 0x71], r12d
mov byte [rbp - 0x6d], 0
mov qword [rbp - 0x69], rsi
movups xmm0, xmmword [rbp - 0x71]
movups xmmword [rdi + 0x38], xmm0
mov rbx, qword [r15]
lea rcx, [r14 + 0x30]
mov qword [rbp - 0x51], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x49], 1
cmp byte [r14 + 0x1a8], 0
je 0x140072725
mov rcx, qword [r14 + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, rdi
call fcn.140023450
nop
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400725f4
lea rcx, [r14 + 0x110]
mov r8, rdi
mov rdx, rbx
call fcn.140081160
mov rcx, qword [r14 + 0x28]
lock inc dword [rcx + 0x30]
test al, al
je 0x14007274d
lea rcx, [r14 + 0x58]
call fcn.140024470
nop
mov rcx, qword [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400725f4