Function at 0x140061930
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, 0xd0
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rbp - 1], rax
mov r13, qword [rbp + 0x6f]
xor r15d, r15d
mov rsi, qword [rbp + 0x7f]
mov r12d, r8d
mov r14, rdx
mov rdi, rcx
cmp r8d, 2
je 0x14006197e
cmp r8d, 0x17
jne 0x140061ae6
lea eax, [r9 - 1]
test eax, 0xfffffffb
jne 0x140061ae6
xor eax, eax
lea ecx, [rax + 0x10]
lock cmpxchg qword [rdi + 0x18], r15
mov rbx, rax
mov qword [rbp - 0x71], rax
jne 0x140061a15
mov qword [rsp + 0x40], r15
lea rax, [rbp - 0x69]
mov qword [rsp + 0x38], r15
lea r8, [rbp - 0x31]
mov qword [rsp + 0x30], rax
mov r9d, ecx
mov rcx, qword [r14]
lea rax, [rbp - 0x71]
mov dword [rsp + 0x28], 8
mov edx, 0xc8000006
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x31], 0x25a207b9
mov dword [rbp - 0x2d], 0x4660ddf3
mov dword [rbp - 0x29], 0xe576e98e
mov dword [rbp - 0x25], 0x3e06748c
mov dword [rbp - 0x69], r15d
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rbp - 0x71]
test eax, eax
cmovne rcx, rdi
mov qword [rbp - 0x71], rcx
xchg qword [rdi + 0x18], rcx
mov rbx, qword [rbp - 0x71]
mov ecx, InitCommonControls
cmp rbx, rdi
cmove rbx, r15
test rbx, rbx
je 0x140061ae6
xor eax, eax
lea r9, [rsi + 0x38]
mov qword [rbp - 0x21], rax
lea rdx, [rbp - 0x21]
cmp r12d, 2
mov qword [rbp - 0x19], rax
mov r8d, 0x1c
mov qword [rbp - 0x11], rax
cmove r8, rcx
mov dword [rbp - 9], eax
mov rcx, qword [r14]
mov word [rbp - 0x21], r12w
call fcn.140037c90
cmp dword [rsi + 0x38], r15d
je 0x140061a84
call fcn.140046d00
mov rcx, qword [rsi + 0x40]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x140061a7b
cmp dword [rsi + 0x38], 0x2726
je 0x140061a84
mov rcx, qword [rdi + 8]
jmp 0x140061b28
mov byte [rsi + 0x60], 1
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov r8d, dword [rbp + 0x77]
xor r12d, r12d
mov rcx, qword [r14]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov rdx, r13
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r12d
call rbx
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140061ad8
cmp eax, 0x3e5
je 0x140061ad8
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call fcn.140053b30
jmp 0x140061b34
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.140053f00
jmp 0x140061b34
mov rcx, rdi
call fcn.140045ea0
test byte [r14 + 8], 3
lea rdi, [0x1403d4c88]
mov r15, rax
jne 0x140061bde
mov rbx, qword [r14]
cmp rbx, 0xffffffffffffffff
jne 0x140061b5b
mov dword [rbp - 0x61], 0x2719
call fcn.140046d00
mov qword [rbp - 0x59], rax
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rsi + 0x38], xmm0
mov rcx, qword [r15 + 0x28]
lock inc dword [rcx + 0x30]
mov rdx, rsi
call fcn.1400557e0
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.140172190
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]
lea r8, [rbp - 0x65]
mov dword [rbp - 0x65], 1
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edi, eax
call fcn.140046d00
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rbp - 0x59], rbx
mov dword [rbp - 0x61], eax
movups xmm0, xmmword [rbp - 0x61]
movups xmmword [rsi + 0x38], xmm0
test edi, edi
js 0x140061b24
lea rdi, [0x1403d4c88]
xor r12d, r12d
mov r8, rdi
mov dword [rbp - 0x51], r12d
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140061c94
mov qword [rbp - 0x49], rdi
movups xmm0, xmmword [rbp - 0x51]
movups xmmword [rsi + 0x38], xmm0
or byte [r14 + 8], 2
jmp 0x140061be1
xor r12d, r12d
mov r8, qword [rbp + 0x77]
lea r9, [rsi + 0x38]
mov rcx, qword [r14]
mov rdx, r13
call fcn.140039ea0
test eax, eax
je 0x140061b24
call fcn.140046d00
mov rcx, qword [rsi + 0x40]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x140061c18
cmp dword [rsi + 0x38], 0x2734
je 0x140061c3c
call fcn.140046d00
mov r8, qword [rsi + 0x40]
mov rax, qword [rax + 8]
cmp qword [r8 + 8], rax
jne 0x140061b24
cmp dword [rsi + 0x38], 0x2733
jne 0x140061b24
mov r8, rdi
mov dword [rbp - 0x41], r12d
lea rdx, [0x14001aea0]
lea rcx, [0x1403d4c80]
call fcn.1400ddbc4
test eax, eax
je 0x140061c8e
mov byte [rsp + 0x30], 0
lea r9, [r14 + 0x20]
mov qword [rbp - 0x39], rdi
mov edx, 3
movups xmm0, xmmword [rbp - 0x41]
mov byte [rsp + 0x28], 0
mov rcx, r15
mov qword [rsp + 0x20], rsi
movups xmmword [rsi + 0x38], xmm0
mov r8, qword [r14]
call fcn.140061ca0
jmp 0x140061b34
call fcn.14028ff34
int3
call fcn.14028ff34
int3