Function at 0x1400a5d60
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 [0x140391620]
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 0x1400a5dad
cmp r8d, 0x17
jne 0x1400a5f59
lea eax, [r9 - 1]
test eax, 0xfffffffb
jne 0x1400a5f59
xor eax, eax
lea r9d, [rax + 0x10]
lock cmpxchg qword [rcx + 0x18], rdx
mov r15, rax
mov qword [rbp - 0x51], rax
jne 0x1400a5e42
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 0x1400a5f59
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 0x1400a5e7d
mov dword [rbp - 0x61], 0x2719
mov byte [rbp - 0x5d], 1
jmp 0x1400a5ebb
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 0x1400a5eaa
mov r8, qword [rdi + 0x40]
lea rcx, [rdi + 0x38]
call fcn.140099c10
xor edx, edx
jmp 0x1400a5ece
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, [0x140339bc0]
mov qword [rbp - 0x59], rax
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rdi + 0x38], xmm0
cmp byte [rdi + 0x3c], 0
je 0x1400a5efa
cmp dword [rdi + 0x38], 0x2726
jne 0x1400a5ef1
mov rax, qword [rdi + 0x40]
movabs rcx, 0x8fafd21e25c5e09b
cmp qword [rax + 8], rcx
je 0x1400a5efa
mov rcx, qword [rsi + 8]
jmp 0x1400a5fae
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 0x1400a5f4b
cmp eax, 0x3e5
je 0x1400a5f4b
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.1400a3040
jmp 0x1400a5fba
mov rdx, rdi
mov rcx, qword [rsi + 8]
call fcn.1400a2fa0
jmp 0x1400a5fba
xor eax, eax
lock cmpxchg qword [rsi + 0x10], rdx
mov rbx, rax
jne 0x1400a5f78
mov rcx, qword [rsi]
mov rcx, qword [rcx]
call fcn.1400b69b0
mov rbx, rax
xchg qword [rsi + 0x10], rax
test byte [r14 + 8], 3
jne 0x1400a6011
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
jne 0x1400a5fe1
mov dword [rbp - 0x61], 0x2719
mov byte [rbp - 0x5d], 1
lea rax, [0x140339bc0]
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.140036580
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140255050
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 0x1400a60b1
mov r8, qword [rdi + 0x40]
lea rcx, [rdi + 0x38]
call fcn.140099c10
or byte [r14 + 8], 2
lea r9, [rdi + 0x38]
mov r8, qword [rbp + 0x77]
mov rdx, r13
mov rcx, qword [r14]
call fcn.1400a3530
test eax, eax
je 0x1400a5faa
mov eax, dword [rdi + 0x38]
cmp eax, 0x2734
je 0x1400a603d
cmp eax, 0x2733
jne 0x1400a5faa
mov rax, qword [rdi + 0x40]
movabs rcx, 0x8fafd21e25c5e09b
cmp qword [rax + 8], rcx
jne 0x1400a5faa
mov dword [rbp - 0x61], 0
mov byte [rbp - 0x5d], 0
lea rax, [0x140339bc0]
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 0x1400a60c5
mov rcx, qword [rbx + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, rdi
call fcn.140036580
nop
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400a5fba
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x61], eax
test eax, eax
setne byte [rbp - 0x5d]
jmp 0x1400a5f97
lea rcx, [rbx + 0x110]
mov r8, rdi
mov rdx, rsi
call fcn.1400b4c90
mov rcx, qword [rbx + 0x28]
lock inc dword [rcx + 0x30]
test al, al
je 0x1400a60ed
lea rcx, [rbx + 0x58]
call fcn.1400a4820
nop
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1400a5fba