Function at 0x140036600
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.1400369a0
nop
xor r13d, r13d
mov qword [rbp - 0x30], r13
lea rax, [0x1400da5a0]
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 0x140036681
call fcn.14006d180
mov dword [rbp - 0x20], 1
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x30], xmm0
jmp 0x14003688d
lea r9, [rbp - 0x30]
mov edx, 1
mov r8d, 6
mov ecx, r15d
call fcn.14007d6f0
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400366ad
mov eax, dword [rbp - 0x30]
test eax, eax
je 0x140036726
jmp 0x14003688d
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 0x1400366ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14006d5d0
mov dword [rbp - 0x20], ebx
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x30], xmm0
test ebx, ebx
jne 0x140036867
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.1400420d0
mov dword [rbp - 0x20], r13d
lea rax, [0x1400da5a0]
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 0x1400367b4
mov dword [rbp + 0x50], 1
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14003689e
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 0x1400367b4
call fcn.14006d5d0
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 0x1400368b7
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400368c8
mov eax, 0x1c
mov r8d, select
cmp word [r14], 2
cmovne r8d, eax
mov rdx, r14
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x140036809
call fcn.14006d5d0
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 0x1400368e1
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400368f2
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14003684c
call fcn.14006d5d0
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 0x14003690b
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, [0x1400da5a0]
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.140064d10
lea rdx, str.open
lea rcx, [rbp - 0x30]
call fcn.1400696d0
int3
call fcn.14006d5d0
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.1400696d0
int3
call fcn.14006d5d0
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.1400696d0
int3
call fcn.14006d5d0
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.1400696d0
int3