Function at 0x1400c4110
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xb0
mov ebx, r8d
mov r15, rdx
mov rdi, rcx
mov r13, qword [rbp + 0x77]
xor r14d, r14d
cmp r8d, 2
je 0x1400c4153
cmp ebx, 0x17
jne 0x1400c4335
lea eax, [r9 - 1]
mov ecx, select
test eax, 0xfffffffb
je 0x1400c416b
mov rsi, r14
jmp 0x1400c41fa
xor eax, eax
lock cmpxchg qword [rdi + 0x18], r14
mov rsi, rax
mov qword [rbp - 0x49], rax
jne 0x1400c41f3
mov dword [rbp - 0x39], 0x25a207b9
mov dword [rbp - 0x35], 0x4660ddf3
mov dword [rbp - 0x31], 0xe576e98e
mov dword [rbp - 0x2d], 0x3e06748c
mov dword [rbp + 0x57], r14d
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rax, [rbp + 0x57]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 8
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov r9d, ecx
lea r8, [rbp - 0x39]
mov edx, 0xc8000006
mov rcx, qword [r15]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1400c41e2
mov rax, rdi
mov qword [rbp - 0x49], rax
jmp 0x1400c41e6
mov rax, qword [rbp - 0x49]
xchg qword [rdi + 0x18], rax
mov rsi, qword [rbp - 0x49]
mov ecx, select
cmp rsi, rdi
cmove rsi, r14
test rsi, rsi
je 0x1400c4335
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], eax
mov word [rbp - 9], bx
mov r8d, 0x1c
cmp ebx, 2
cmove r8, rcx
lea r9, [r13 + 0x38]
lea rdx, [rbp - 9]
mov rcx, qword [r15]
call fcn.1400be940
mov rax, qword [r13 + 0x48]
test al, 1
je 0x1400c42c9
cmp rax, 1
jne 0x1400c424c
cmp dword [r13 + 0x38], r14d
je 0x1400c42c9
mov dword [rbp - 0x35], r14d
movabs r14, 0x4d54ee85da812030
mov rcx, qword [0x140275e88]
add rcx, r14
lea rbx, [0x140275e80]
cmp rcx, 1
jbe 0x1400c4285
mov rax, qword [0x140275e80]
mov edx, 0x2726
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1400c4287
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x29], rax
mov dword [rbp - 0x39], 0x2726
mov qword [rbp - 0x31], rbx
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rbp - 0x21], xmm0
movsd xmm1, qword [rbp - 0x29]
movsd qword [rbp - 0x11], xmm1
lea rdx, [rbp - 0x21]
lea rcx, [r13 + 0x38]
call fcn.1400bdb10
test al, al
jne 0x1400c42c9
mov rcx, qword [rdi + 8]
jmp 0x1400c43d5
mov byte [r13 + 0x70], 1
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov r14, qword [rbp + 0x7f]
mov qword [rsp + 0x30], r14
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8d, dword [rbp + 0x6f]
mov rdx, qword [rbp + 0x67]
mov rcx, qword [r15]
call rsi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x1400c4324
cmp eax, 0x3e5
je 0x1400c4324
xor r9d, r9d
mov r8d, eax
mov rdx, r14
mov rcx, qword [rdi + 8]
call fcn.1400c0e70
jmp 0x1400c43e1
mov rdx, r14
mov rcx, qword [rdi + 8]
call fcn.1400c0dd0
jmp 0x1400c43e1
xor eax, eax
lock cmpxchg qword [rdi + 0x10], r14
mov rsi, rax
jne 0x1400c4354
mov rcx, qword [rdi]
mov rcx, qword [rcx]
call fcn.1400d78e0
mov rsi, rax
xchg qword [rdi + 0x10], rax
test byte [r15 + 8], 3
jne 0x1400c4436
mov rcx, qword [r15]
cmp rcx, 0xffffffffffffffff
jne 0x1400c4407
mov dword [rbp - 0x35], r14d
movabs r14, 0x4d54ee85da812030
mov rcx, qword [0x140275e88]
add rcx, r14
lea rbx, [0x140275e80]
cmp rcx, 1
jbe 0x1400c43a5
mov rax, qword [0x140275e80]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1400c43a7
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x29], rax
mov dword [rbp - 0x39], 0x2719
mov qword [rbp - 0x31], rbx
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [r13 + 0x38], xmm0
movsd xmm1, qword [rbp - 0x29]
movsd qword [r13 + 0x48], xmm1
mov rcx, qword [rsi + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, r13
call fcn.1400c0d40
mov eax, 0xffffffff
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov dword [rbp + 0x57], 1
lea r8, [rbp + 0x57]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov ebx, eax
mov edx, eax
shr edx, 0x1f
lea rcx, [r13 + 0x38]
call fcn.1400be880
test ebx, ebx
js 0x1400c43d1
or byte [r15 + 8], 2
lea r9, [r13 + 0x38]
mov r8, qword [rbp + 0x6f]
mov rdx, qword [rbp + 0x67]
mov rcx, qword [r15]
call fcn.1400bebe0
test eax, eax
je 0x1400c43d1
mov dword [rbp - 0x35], r14d
movabs r14, 0x4d54ee85da812030
mov r12, qword [0x140275e88]
lea rax, [r12 + r14]
lea rbx, [0x140275e80]
cmp rax, 1
jbe 0x1400c448f
mov rax, qword [0x140275e80]
mov edx, 0x2734
mov rcx, rbx
call qword [rax + 0x30]
mov r12, qword [0x140275e88]
jmp 0x1400c4491
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x29], rax
mov dword [rbp - 0x39], 0x2734
mov qword [rbp - 0x31], rbx
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rbp - 0x21], xmm0
movsd xmm1, qword [rbp - 0x29]
movsd qword [rbp - 0x11], xmm1
lea rdx, [rbp - 0x21]
lea rcx, [r13 + 0x38]
call fcn.1400bdb10
test al, al
jne 0x1400c452e
mov dword [rbp - 0x35], 0
lea rax, [r12 + r14]
cmp rax, 1
jbe 0x1400c44ef
mov rax, qword [0x140275e80]
mov edx, 0x2733
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x1400c44f1
mov al, 1
movzx eax, al
add rax, 2
mov qword [rbp - 0x29], rax
mov dword [rbp - 0x39], 0x2733
mov qword [rbp - 0x31], rbx
movups xmm0, xmmword [rbp - 0x39]
movups xmmword [rbp - 0x21], xmm0
movsd xmm1, qword [rbp - 0x29]
movsd qword [rbp - 0x11], xmm1
lea rdx, [rbp - 0x21]
lea rcx, [r13 + 0x38]
call fcn.1400bdb10
test al, al
je 0x1400c43d1
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
xor r14d, r14d
mov qword [rbp - 0x11], r14
movups xmmword [r13 + 0x38], xmm0
movsd xmm0, qword [rbp - 0x11]
movsd qword [r13 + 0x48], xmm0
mov rbx, qword [r15]
lea rcx, [rsi + 0x30]
mov qword [rbp - 0x39], rcx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x31], 1
cmp byte [rsi + 0x1e8], r14b
je 0x1400c457c
mov rcx, qword [rsi + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, r13
call fcn.1400c0d40
jmp 0x1400c45cf
lea rcx, [rsi + 0x110]
mov r8, r13
mov rdx, rbx
call fcn.1400c94d0
mov rcx, qword [rsi + 0x28]
lock inc dword [rcx + 0x30]
test al, al
je 0x1400c45cf
mov byte [rbp + 0x57], 0
lea rax, [rbp + 0x57]
mov qword [rbp - 0x41], rax
mov dword [rbp - 0x49], 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r14
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x49]
mov rcx, qword [rsi + 0x60]
call fcn.1400bf480
nop
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 3
jmp 0x1400c43e6