Function at 0x140006c40
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
movzx r12d, r9b
mov r14, r8
mov rdi, rcx
mov r9, rdx
xor r8d, r8d
xor edx, edx
call fcn.140006ff0
nop
xor r13d, r13d
mov qword [rbp - 0x30], r13
lea rax, [0x1400e96c0]
mov qword [rbp - 0x28], rax
mov eax, reloc.WS2_32.dll_socket
mov r15d, 2
cmp word [r14], r15w
cmovne r15d, eax
mov rbx, qword [rdi]
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x140006cc4
call fcn.140029260
mov dword [rbp - 0x20], 1
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp - 0x30], xmm0
movd eax, xmm0
jmp 0x140006dbc
lea r9, [rbp - 0x30]
mov edx, 1
lea r8d, [rdx + 5]
mov ecx, r15d
call fcn.140037460
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140006ce4
jmp 0x140006d47
mov rdx, qword [rbx + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdx + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x140006d54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400298b0
mov dword [rbp - 0x20], ebx
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x30], xmm0
test ebx, ebx
je 0x140006d54
mov qword [rbp - 0x20], r13
lea rax, [0x1400e96c0]
mov qword [rbp - 0x18], rax
mov byte [rbp + 0x50], 0
lea r9, [rbp - 0x20]
mov r8b, 1
lea rdx, [rbp + 0x50]
mov rcx, rsi
call fcn.140023e20
mov eax, dword [rbp - 0x30]
test eax, eax
jne 0x140006ed8
jmp 0x140006d8f
mov qword [rbp + 0x50], 0xffffffffffffffff
mov qword [rdi + 8], rsi
mov byte [rdi + reloc.WS2_32.dll_recv], 0x10
lea rcx, [rdi + 0x18]
movzx r8d, byte [rbp + 0x40]
xor edx, edx
call fcn.140010c50
mov dword [rbp - 0x20], r13d
lea rax, [0x1400e96c0]
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp - 0x30], xmm0
movd eax, xmm0
mov dword [rdi + 0x40], r15d
mov byte [rdi + 0x44], 0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
mov qword [rbp - 0x20], 2
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rdi + 0x48], xmm0
unpckhpd xmm1, xmm1
movsd qword [rdi + 0x58], xmm1
mov dword [rdi + 0x60], r13d
test eax, eax
jne 0x140006ed8
test r12b, r12b
je 0x140006e25
mov dword [rbp + 0x50], 1
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140006ee9
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x50]
mov edx, 0xffff
mov r8d, 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x140006e25
call fcn.1400298b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x20], eax
mov qword [rbp - 0x18], rbx
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x30], xmm0
test eax, eax
jne 0x140006f02
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140006f13
mov eax, 0x1c
mov r8d, reloc.WS2_32.dll_recv
cmp word [r14], 2
cmovne r8d, eax
mov rdx, r14
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140006e7a
call fcn.1400298b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x20], eax
mov qword [rbp - 0x18], rbx
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x30], xmm0
test eax, eax
jne 0x140006f2c
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140006f3d
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x140006ebd
call fcn.1400298b0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x20], eax
mov qword [rbp - 0x18], rbx
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x30], xmm0
test eax, eax
jne 0x140006f56
mov rax, rdi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.open
lea rcx, [rbp - 0x30]
call fcn.140026a00
int3
call fcn.1400298b0
mov dword [rbp - 0x20], 0x2719
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x30], xmm0
lea rdx, str.set_option
lea rcx, [rbp - 0x30]
call fcn.140026a00
int3
call fcn.1400298b0
mov dword [rbp - 0x20], 0x2719
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x30], xmm0
lea rdx, str.bind
lea rcx, [rbp - 0x30]
call fcn.140026a00
int3
call fcn.1400298b0
mov dword [rbp - 0x20], 0x2719
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x30], xmm0
lea rdx, str.listen
lea rcx, [rbp - 0x30]
call fcn.140026a00
int3