Function at 0x140005310
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.1400056c0
nop
xor r13d, r13d
mov qword [rbp - 0x30], r13
lea rax, [0x1400d03d0]
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 0x140005394
call fcn.140027160
mov dword [rbp - 0x20], 1
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movaps xmmword [rbp - 0x30], xmm0
movd eax, xmm0
jmp 0x14000548c
lea r9, [rbp - 0x30]
mov edx, 1
lea r8d, [rdx + 5]
mov ecx, r15d
call fcn.140033c20
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400053b4
jmp 0x140005417
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 0x140005424
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140027570
mov dword [rbp - 0x20], ebx
mov qword [rbp - 0x18], rax
movaps xmm0, xmmword [rbp - 0x20]
movdqa xmmword [rbp - 0x30], xmm0
test ebx, ebx
je 0x140005424
mov qword [rbp - 0x20], r13
lea rax, [0x1400d03d0]
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.140022200
mov eax, dword [rbp - 0x30]
test eax, eax
jne 0x1400055a8
jmp 0x14000545f
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.14000f700
mov dword [rbp - 0x20], r13d
lea rax, [0x1400d03d0]
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 0x1400055a8
test r12b, r12b
je 0x1400054f5
mov dword [rbp + 0x50], 1
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400055b9
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 0x1400054f5
call fcn.140027570
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 0x1400055d2
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400055e3
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 0x14000554a
call fcn.140027570
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 0x1400055fc
mov rcx, qword [rdi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14000560d
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x14000558d
call fcn.140027570
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 0x140005626
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.140024d20
int3
call fcn.140027570
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.140024d20
int3
call fcn.140027570
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.140024d20
int3
call fcn.140027570
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.140024d20
int3