Function at 0x140031d30
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 - 7]
sub rsp, 0xc0
mov rax, qword [0x1401f41c0]
xor rax, rsp
mov qword [rbp - 1], rax
mov r15, qword [rbp + 0x67]
mov r14, rdx
mov r13, qword [rbp + 0x77]
xor edx, edx
mov r12, qword [rbp + 0x7f]
mov ebx, r8d
mov qword [rbp - 0x41], r15
mov rdi, rcx
cmp r8d, 2
je 0x140031d84
cmp ebx, 0x17
jne 0x140031f65
lea eax, [r9 - 1]
mov ecx, select
test eax, 0xfffffffb
je 0x140031d9c
mov rsi, rdx
jmp 0x140031e2c
xor eax, eax
lock cmpxchg qword [rdi + 0x18], rdx
mov rsi, rax
mov qword [rbp - 0x61], rax
jne 0x140031e25
mov qword [rsp + 0x40], rdx
lea rax, [rbp - 0x69]
mov qword [rsp + 0x38], rdx
lea r8, [rbp - 0x39]
mov qword [rsp + 0x30], rax
mov r9d, ecx
mov rcx, qword [r14]
lea rax, [rbp - 0x61]
mov dword [rbp - 0x69], edx
mov edx, 0xc8000006
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x39], 0x25a207b9
mov dword [rbp - 0x35], 0x4660ddf3
mov dword [rbp - 0x31], 0xe576e98e
mov dword [rbp - 0x2d], 0x3e06748c
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140031e12
mov rax, rdi
mov qword [rbp - 0x61], rax
jmp 0x140031e16
mov rax, qword [rbp - 0x61]
xchg qword [rdi + 0x18], rax
mov rsi, qword [rbp - 0x61]
xor edx, edx
mov ecx, select
cmp rsi, rdi
cmove rsi, rdx
test rsi, rsi
je 0x140031f65
xor eax, eax
lea r9, [r13 + 0x38]
xorps xmm0, xmm0
mov qword [rbp - 0x11], rax
movups xmmword [rbp - 0x21], xmm0
cmp ebx, 2
mov dword [rbp - 9], eax
mov r8d, 0x1c
mov word [rbp - 0x21], bx
cmove r8, rcx
lea rdx, [rbp - 0x21]
mov rcx, qword [r14]
call fcn.14002c780
mov rax, qword [r13 + 0x48]
test al, 1
je 0x140031efd
cmp rax, 1
jne 0x140031e7f
cmp dword [r13 + 0x38], 0
je 0x140031efd
mov rcx, qword [0x1401ef008]
lea rbx, section..data
xor eax, eax
movabs r15, 0x4d54ee85da812030
add rcx, r15
mov dword [rbp - 0x35], eax
cmp rcx, 1
jbe 0x140031eb9
mov rax, qword [section..data]
mov edx, 0x2726
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140031ebb
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x59]
add rax, 2
mov dword [rbp - 0x39], 0x2726
mov qword [rbp - 0x29], rax
lea rcx, [r13 + 0x38]
movsd xmm1, qword [rbp - 0x29]
mov qword [rbp - 0x31], rbx
movups xmm0, xmmword [rbp - 0x39]
movsd qword [rbp - 0x49], xmm1
movups xmmword [rbp - 0x59], xmm0
call fcn.1400104e0
test al, al
jne 0x140031efd
mov rcx, qword [rdi + 8]
jmp 0x140032006
mov byte [r13 + 0x70], 1
mov rax, qword [rdi + 8]
lock inc dword [rax + 0x30]
mov r8d, dword [rbp + 0x6f]
xor eax, eax
mov rdx, qword [rbp - 0x41]
xor r9d, r9d
mov rcx, qword [r14]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call rsi
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140031f54
cmp eax, 0x3e5
je 0x140031f54
mov rcx, qword [rdi + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, r12
call fcn.140022470
jmp 0x140032011
mov rcx, qword [rdi + 8]
mov rdx, r12
call fcn.140022520
jmp 0x140032011
xor eax, eax
lock cmpxchg qword [rdi + 0x10], rdx
mov rsi, rax
jne 0x140031f86
mov rcx, qword [rdi]
mov rcx, qword [rcx]
call fcn.14002ac80
mov rsi, rax
xor edx, edx
xchg qword [rdi + 0x10], rax
test byte [r14 + 8], 3
jne 0x14003206c
mov rcx, qword [r14]
cmp rcx, 0xffffffffffffffff
jne 0x14003203d
mov rcx, qword [0x1401ef008]
lea rbx, section..data
movabs r15, 0x4d54ee85da812030
mov dword [rbp - 0x35], edx
add rcx, r15
cmp rcx, 1
jbe 0x140031fd6
mov rax, qword [section..data]
mov edx, 0x2719
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140031fd8
mov al, 1
movzx eax, al
mov dword [rbp - 0x39], 0x2719
add rax, 2
mov qword [rbp - 0x31], rbx
movups xmm0, xmmword [rbp - 0x39]
mov qword [rbp - 0x29], rax
movsd xmm1, qword [rbp - 0x29]
movups xmmword [r13 + 0x38], xmm0
movsd qword [r13 + 0x48], xmm1
mov rcx, qword [rsi + 0x28]
xor r8d, r8d
mov rdx, r13
call fcn.140012b30
mov eax, 0xffffffff
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14016ab50
mov rbx, qword [rsp + 0x118]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [rbp - 0x69]
mov dword [rbp - 0x69], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov edx, eax
lea rcx, [r13 + 0x38]
shr edx, 0x1f
mov ebx, eax
call fcn.1400124a0
test ebx, ebx
js 0x140032002
or byte [r14 + 8], 2
mov r8, qword [rbp + 0x6f]
lea r9, [r13 + 0x38]
mov rcx, qword [r14]
mov rdx, r15
call fcn.14002d100
test eax, eax
je 0x140032002
mov rdi, qword [0x1401ef008]
lea rbx, section..data
xor eax, eax
movabs r15, 0x4d54ee85da812030
mov dword [rbp - 0x35], eax
lea rax, [rdi + r15]
cmp rax, 1
jbe 0x1400320c9
mov rax, qword [section..data]
mov edx, 0x2734
mov rcx, rbx
call qword [rax + 0x30]
mov rdi, qword [0x1401ef008]
jmp 0x1400320cb
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x59]
add rax, 2
mov dword [rbp - 0x39], 0x2734
mov qword [rbp - 0x29], rax
lea rcx, [r13 + 0x38]
movsd xmm1, qword [rbp - 0x29]
mov qword [rbp - 0x31], rbx
movups xmm0, xmmword [rbp - 0x39]
movsd qword [rbp - 0x49], xmm1
movups xmmword [rbp - 0x59], xmm0
call fcn.1400104e0
test al, al
jne 0x140032166
xor eax, eax
mov dword [rbp - 0x35], eax
lea rax, [rdi + r15]
cmp rax, 1
jbe 0x140032127
mov rax, qword [section..data]
mov edx, 0x2733
mov rcx, rbx
call qword [rax + 0x30]
jmp 0x140032129
mov al, 1
movzx eax, al
lea rcx, [r13 + 0x38]
add rax, 2
mov dword [rbp - 0x39], 0x2733
mov qword [rbp - 0x29], rax
lea rdx, [rbp - 0x59]
movsd xmm1, qword [rbp - 0x29]
mov qword [rbp - 0x31], rbx
movups xmm0, xmmword [rbp - 0x39]
movsd qword [rbp - 0x49], xmm1
movups xmmword [rbp - 0x59], xmm0
call fcn.1400104e0
test al, al
je 0x140032002
xor eax, eax
lea r9, [r14 + 0x20]
xorps xmm0, xmm0
mov byte [rsp + 0x30], al
movups xmmword [r13 + 0x38], xmm0
mov qword [rbp - 0x49], rax
mov edx, 3
movsd xmm0, qword [rbp - 0x49]
mov rcx, rsi
movsd qword [r13 + 0x48], xmm0
mov r8, qword [r14]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r13
call fcn.1400321b0
mov eax, 3
jmp 0x140032016