Function at 0x140066ee0
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140066ee0
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, 0x70
movzx r13d, r9b
mov r14, r8
mov rdi, rcx
xor r8d, r8d
call fcn.140013660
nop
movzx esi, word [r14]
mov eax, Ordinal_26
mov r12d, 2
cmp si, r12w
cmovne r12d, eax
mov r15, qword [rdi]
xor ebx, ebx
cmp qword [rdi + 8], 0xffffffffffffffff
je 0x140066f97
mov dword [rbp - 0x30], 1
movabs rcx, 0x8fafd21e25c5e09b
lea rbx, [0x140235b20]
mov rax, qword [0x140235b28]
cmp rax, rcx
je 0x140066f80
movabs rcx, 0xb2ab117a257edf0d
cmp rax, rcx
je 0x140066f80
mov rax, qword [0x140235b20]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax + 0x30]
call qword [case.0x14006bf61.0]
jmp 0x140066f82
mov al, 1
mov byte [rbp - 0x2c], al
mov qword [rbp - 0x28], rbx
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
jmp 0x140067103
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea edx, [r9 + 1]
lea r8d, [r9 + 6]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x30], eax
test eax, eax
setne byte [rbp - 0x2c]
lea rax, [0x1401e1a10]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
cmp rbx, 0xffffffffffffffff
jne 0x140066ff4
lea rsi, [0x1401e1a10]
jmp 0x14006703a
cmp si, 2
je 0x14006701d
xor esi, esi
mov dword [rbp + 0x50], esi
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x50]
lea edx, [rsi + 0x29]
lea r8d, [rsi + 0x1b]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x14006701f
xor esi, esi
mov dword [rbp - 0x30], esi
mov byte [rbp - 0x2c], 0
lea rsi, [0x1401e1a10]
mov qword [rbp - 0x28], rsi
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x40], rbx
cmp rbx, 0xffffffffffffffff
jne 0x140067046
jmp 0x140067094
mov rdx, qword [r15 + 0x30]
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdx + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x140067070
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
setne byte [rbp - 0x2c]
jmp 0x140067075
xor eax, eax
mov byte [rbp - 0x2c], al
mov dword [rbp - 0x30], eax
mov qword [rbp - 0x28], rsi
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
cmp dword [rbp - 0x30], 0
je 0x1400670a2
lea rcx, [rbp - 0x40]
call fcn.140013fd0
cmp dword [rbp - 0x30], 0
jne 0x140067216
xor ebx, ebx
jmp 0x1400670d7
mov qword [rbp - 0x40], 0xffffffffffffffff
mov qword [rdi + 8], rbx
mov byte [rdi + select], 0x10
lea rcx, [rdi + 0x18]
movzx r8d, byte [rbp + 0x40]
xor edx, edx
call fcn.14001c8f0
xor ebx, ebx
mov dword [rbp - 0x30], ebx
mov byte [rbp - 0x2c], bl
mov qword [rbp - 0x28], rsi
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
mov dword [rdi + 0x40], r12d
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], ebx
cmp dword [rbp - 0x30], 0
jne 0x140067216
test r13b, r13b
je 0x1400671a8
mov dword [rbp + 0x50], 1
mov rbx, qword [rdi + 8]
cmp rbx, 0xffffffffffffffff
jne 0x14006713b
mov dword [rbp - 0x30], 0x2719
mov byte [rbp - 0x2c], 1
lea rax, [0x1401e1a10]
jmp 0x140067195
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x50]
mov edx, 0xffff
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rbp - 0x30], eax
test eax, eax
setne byte [rbp - 0x2c]
lea rax, [0x1401e1a10]
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
test ebx, ebx
jne 0x1400671a2
xor esi, esi
mov dword [rbp - 0x30], esi
mov byte [rbp - 0x2c], sil
mov qword [rbp - 0x28], rax
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
cmp dword [rbp - 0x30], 0
jne 0x140067227
mov eax, reloc.oal.dll_Ordinal_28
mov r8d, select
cmp word [r14], 2
cmovne r8d, eax
lea r9, [rbp - 0x30]
mov rdx, r14
mov rcx, qword [rdi + 8]
call fcn.14000c560
cmp dword [rbp - 0x30], 0
jne 0x140067238
lea r8, [rbp - 0x30]
mov edx, 0x7fffffff
mov rcx, qword [rdi + 8]
call fcn.140019340
cmp dword [rbp - 0x30], 0
jne 0x140067205
mov rax, rdi
mov rbx, qword [rsp + 0xb8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.listen
lea rcx, [rbp - 0x30]
call fcn.140015770
int3
lea rdx, str.open
lea rcx, [rbp - 0x30]
call fcn.140015770
int3
lea rdx, str.set_option
lea rcx, [rbp - 0x30]
call fcn.140015770
int3
lea rdx, str.bind
lea rcx, [rbp - 0x30]
call fcn.140015770
int3