Function at 0x1400a2e10
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xc0
mov rax, qword [0x1403b8550]
xor rax, rsp
mov qword [rbp - 1], rax
mov r12d, r8d
mov r14, rdx
mov rsi, rcx
mov r13, qword [rbp + 0x6f]
mov rdi, qword [rbp + 0x7f]
xor edx, edx
cmp r8d, 2
je 0x1400a2e5d
cmp r8d, 0x17
jne 0x1400a3009
lea eax, [r9 - 1]
test eax, 0xfffffffb
jne 0x1400a3009
xor eax, eax
lea r9d, [rax + 0x10]
lock cmpxchg qword [rcx + 0x18], rdx
mov r15, rax
mov qword [rbp - 0x51], rax
jne 0x1400a2ef2
mov dword [rbp - 0x31], 0x25a207b9
mov dword [rbp - 0x2d], 0x4660ddf3
mov dword [rbp - 0x29], 0xe576e98e
mov dword [rbp - 0x25], 0x3e06748c
mov dword [rbp - 0x49], edx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
lea rax, [rbp - 0x49]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x51]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x31]
mov edx, 0xc8000006
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rbp - 0x51]
test eax, eax
cmovne rcx, rsi
mov qword [rbp - 0x51], rcx
xchg qword [rsi + 0x18], rcx
mov r15, qword [rbp - 0x51]
xor edx, edx
lea r9d, [rdx + 0x10]
cmp r15, rsi
cmove r15, rdx
test r15, r15
je 0x1400a3009
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], rax
mov dword [rbp - 9], eax
mov word [rbp - 0x21], r12w
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
jne 0x1400a2f2d
mov dword [rbp - 0x61], 0x2719
mov byte [rbp - 0x5d], 1
jmp 0x1400a2f6b
mov r8d, 0x1c
cmp r12d, 2
cmove r8d, r9d
lea rdx, [rbp - 0x21]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x1400a2f5a
mov r8, qword [rdi + 0x40]
lea rcx, [rdi + 0x38]
call fcn.140095fe0
xor edx, edx
jmp 0x1400a2f7e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x61], eax
test eax, eax
setne byte [rbp - 0x5d]
xor edx, edx
lea rax, [0x14035ccc8]
mov qword [rbp - 0x59], rax
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rdi + 0x38], xmm0
cmp byte [rdi + 0x3c], 0
je 0x1400a2faa
cmp dword [rdi + 0x38], 0x2726
jne 0x1400a2fa1
mov rax, qword [rdi + 0x40]
movabs rcx, 0x8fafd21e25c5e09b
cmp qword [rax + 8], rcx
je 0x1400a2faa
mov rcx, qword [rsi + 8]
jmp 0x1400a305e
mov byte [rdi + 0x60], 1
mov rax, qword [rsi + 8]
lock inc dword [rax + 0x30]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], edx
xor r9d, r9d
mov r8d, dword [rbp + 0x77]
mov rdx, r13
mov rcx, qword [r14]
call r15
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x1400a2ffb
cmp eax, 0x3e5
je 0x1400a2ffb
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.1400a00d0
jmp 0x1400a306a
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.1400a0030
jmp 0x1400a306a
xor eax, eax
lock cmpxchg qword [rsi + 0x10], rdx
mov rbx, rax
jne 0x1400a3028
mov rcx, qword [rsi]
mov rcx, qword [rcx]
call fcn.1400b45c0
mov rbx, rax
xchg qword [rsi + 0x10], rax
test byte [r14 + 8], 3
jne 0x1400a30c1
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
jne 0x1400a3091
mov dword [rbp - 0x61], 0x2719
mov byte [rbp - 0x5d], 1
lea rax, [0x14035ccc8]
mov qword [rbp - 0x59], rax
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rdi + 0x38], xmm0
mov rcx, qword [rbx + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, rdi
call fcn.140035df0
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140250db0
mov rbx, qword [rsp + 0x118]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp - 0x45], 1
lea r8, [rbp - 0x45]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x1400a316d
mov r8, qword [rdi + 0x40]
lea rcx, [rdi + 0x38]
call fcn.140095fe0
or byte [r14 + 8], 2
lea r9, [rdi + 0x38]
mov r8, qword [rbp + 0x77]
mov rdx, r13
mov rcx, qword [r14]
call fcn.1400a05c0
test eax, eax
je 0x1400a305a
mov edx, dword [rdi + 0x38]
movabs rcx, 0x8fafd21e25c5e09b
cmp edx, 0x2734
jne 0x1400a30f7
mov rax, qword [rdi + 0x40]
cmp qword [rax + 8], rcx
je 0x1400a3111
cmp edx, 0x2733
jne 0x1400a305a
mov rax, qword [rdi + 0x40]
cmp qword [rax + 8], rcx
jne 0x1400a305a
mov dword [rbp - 0x61], 0
mov byte [rbp - 0x5d], 0
lea rax, [0x14035ccc8]
mov qword [rbp - 0x59], rax
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rdi + 0x38], xmm0
mov rsi, qword [r14]
lea rcx, [rbx + 0x30]
mov qword [rbp - 0x41], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x39], 1
cmp byte [rbx + 0x1a8], 0
je 0x1400a3181
mov rcx, qword [rbx + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, rdi
call fcn.140035df0
nop
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400a306a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x61], eax
test eax, eax
setne byte [rbp - 0x5d]
jmp 0x1400a3047
lea rcx, [rbx + 0x110]
mov r8, rdi
mov rdx, rsi
call fcn.1400b2780
mov rcx, qword [rbx + 0x28]
lock inc dword [rcx + 0x30]
test al, al
je 0x1400a31a9
lea rcx, [rbx + 0x58]
call fcn.1400a18d0
nop
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400a306a