Function at 0x1400367b0
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.140036b50
nop
xor r13d, r13d
mov qword [rbp - 0x30], r13
lea rax, [0x1401627b0]
mov qword [rbp - 0x28], rax
mov eax, 0x17
mov r15d, 2
cmp word [r14], r15w
cmovne r15d, eax
mov rbx, qword [rdi]
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x140036831
call fcn.14006bc20
mov dword [rbp - 0x20], 1
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x30], xmm0
jmp 0x140036a3d
lea r9, [rbp - 0x30]
mov edx, 1
mov r8d, 6
mov ecx, r15d
call fcn.14007c410
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14003685d
mov eax, dword [rbp - 0x30]
test eax, eax
je 0x1400368d6
jmp 0x140036a3d
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 0x14003689e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14006c070
mov dword [rbp - 0x20], ebx
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x30], xmm0
test ebx, ebx
jne 0x140036a17
mov qword [rbp + 0x50], 0xffffffffffffffff
mov qword [rdi + 8], rsi
mov byte [rdi + select], 0x10
lea rcx, [rdi + 0x18]
movzx r8d, byte [rbp + 0x40]
xor edx, edx
call fcn.140042280
mov dword [rbp - 0x20], r13d
lea rax, [0x1401627b0]
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x30], 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 r12b, r12b
je 0x140036964
mov dword [rbp + 0x50], 1
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140036a4e
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 0x140036964
call fcn.14006c070
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 0x140036a67
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140036a78
mov eax, 0x1c
mov r8d, setsockopt
cmp word [r14], 2
cmovne r8d, eax
mov rdx, r14
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1400369b9
call fcn.14006c070
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 0x140036a91
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140036aa2
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x1400369fc
call fcn.14006c070
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 0x140036abb
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
mov qword [rbp - 0x20], r13
lea rax, [0x1401627b0]
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.140065110
lea rdx, str.open
lea rcx, [rbp - 0x30]
call fcn.140069180
int3
call fcn.14006c070
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.140069180
int3
call fcn.14006c070
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.140069180
int3
call fcn.14006c070
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.140069180
int3