Function at 0x140297830
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0xc0
mov r15, rcx
xor edi, edi
mov rcx, qword [r8]
mov r12, 0xffffffffffffffff
mov r13d, r9d
mov rbx, r8
cmp rcx, r12
je 0x140297892
xorps xmm0, xmm0
mov qword [rbp - 0x19], rdi
lea r9, [rbp - 0x29]
mov byte [rbp + 0x47], dil
mov r8b, 1
lea rdx, [rbp + 0x47]
movups xmmword [rbp - 0x29], xmm0
call fcn.140272920
mov qword [rbx], r12
mov rax, qword [r15 + 8]
lock inc dword [rax + 0x30]
mov r14, qword [rbp + 0x87]
mov rsi, qword [rbp + 0x8f]
test r14, r14
je 0x1402978ce
mov eax, edi
lock xadd dword [r14], eax
cmp eax, 1
jne 0x1402978ce
mov rcx, qword [r15 + 8]
xor r9d, r9d
mov r8d, 0x3e3
mov rdx, rsi
call fcn.140285a10
mov r8d, dword [rbp + 0x6f]
xorps xmm0, xmm0
mov edx, dword [rbp + 0x67]
xor r9d, r9d
mov dword [rsp + 0x28], 1
mov ecx, r13d
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.WS2_32.dll_WSASocketW]
cmp rax, r12
lea rcx, [rbp - 0x41]
mov rbx, rax
sete dl
call fcn.14027fa70
cmp rbx, r12
je 0x14029793e
cmp r13d, 0x17
jne 0x14029793b
lea r9, [rbp + 0x87]
mov dword [rbp + 0x87], edi
lea edx, [r13 + 0x12]
mov dword [rsp + 0x20], 4
lea r8d, [r13 + 4]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov r12, rbx
mov r13, qword [rbp + 0x57]
mov r13, qword [r13]
cmp r13, 0xffffffffffffffff
je 0x140297b3d
xorps xmm0, xmm0
mov qword [rbp - 0x61], rdi
mov rcx, r13
movups xmmword [rbp - 0x71], xmm0
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
lea rcx, [rbp - 0x71]
mov ebx, eax
setne dl
call fcn.14027fa70
test ebx, ebx
je 0x140297b3d
mov r11, qword [0x140a28de8]
movabs rax, 0x4d54ee85da812030
add rax, r11
mov ebx, 0x2733
cmp rax, 1
jbe 0x1402979b7
mov rax, qword [0x140a28de0]
lea rcx, [0x140a28de0]
mov edx, ebx
call qword [rax + Ordinal_50]
mov r11, qword [0x140a28de8]
jmp 0x1402979b9
mov al, 1
mov r8, qword [rbp - 0x61]
cmp r8, 1
movzx r9d, al
sete cl
cmp r9, 0xffffffffffffffff
sete al
cmp cl, al
jne 0x140297aa5
mov rcx, qword [rbp - 0x69]
movabs rax, 0x4800144005b3
cmp r8, 1
je 0x1402979f1
mov r10d, dword [rbp - 0x71]
jmp 0x140297a23
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
movabs rax, 0x4800144005b3
imul r10d, ecx, 0x3e8
add r10d, dword [rbp - 0x71]
cmp r9, 0xffffffffffffffff
jne 0x140297a59
lea rcx, [0x140a28de0]
mul rcx
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x14
imul rax, rax, 0x1ffff7
sub rcx, rax
imul ebx, ecx, 0x3e8
add ebx, 0x2733
cmp r10d, ebx
lea rbx, [0x140a28de0]
jne 0x140297aac
cmp r9, 0xffffffffffffffff
lea rax, [0x140a28e18]
mov rcx, rax
cmovne rcx, rbx
test r8, r8
jne 0x140297a81
mov rax, rbx
jmp 0x140297a8a
cmp r8, 1
cmovne rax, qword [rbp - 0x69]
mov rdx, qword [rcx + 8]
test rdx, rdx
jne 0x140297a98
cmp rax, rcx
jmp 0x140297a9c
cmp qword [rax + 8], rdx
sete al
test al, al
jne 0x140297b11
jmp 0x140297aac
lea rbx, [0x140a28de0]
movabs rax, 0x4d54ee85da812030
mov dword [rbp - 0x55], edi
add rax, r11
cmp rax, 1
jbe 0x140297ad6
mov rax, qword [0x140a28de0]
mov edx, 0x4d5
mov rcx, rbx
call qword [rax + Ordinal_50]
jmp 0x140297ad8
mov al, 1
movzx eax, al
lea rdx, [rbp - 0x11]
add rax, 2
mov dword [rbp - 0x59], 0x4d5
mov qword [rbp - 0x49], rax
lea rcx, [rbp - 0x71]
movsd xmm1, qword [rbp - 0x49]
mov qword [rbp - 0x51], rbx
movups xmm0, xmmword [rbp - 0x59]
movsd qword [rbp - 1], xmm1
movups xmmword [rbp - 0x11], xmm0
call fcn.14025dd50
test al, al
je 0x140297b3d
lea r8, [rbp - 0x79]
mov dword [rbp - 0x79], edi
mov edx, 0x8004667e
mov rcx, r13
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, r13
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
lea rcx, [rbp - 0x71]
setne dl
call fcn.14027fa70
mov r13, qword [rbp + 0x57]
xor r9d, r9d
mov qword [r13], r12
cmp r12, 0xffffffffffffffff
jne 0x140297b60
mov rcx, qword [r15 + 8]
lea r8, [rbp - 0x41]
mov rdx, rsi
call fcn.140285910
jmp 0x140297bdd
mov r8, qword [rbp + 0x77]
lea rax, [rbp + 0x57]
mov qword [rsp + 0x38], rsi
mov rdx, r12
mov r12, qword [rbp + 0x4f]
mov qword [rsp + 0x30], rax
mov rcx, r12
mov eax, dword [rbp + 0x7f]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rbp + 0x57], edi
call sub.MSWSOCK.dll_AcceptEx
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140297bb6
cmp eax, 0x3e5
je 0x140297bb6
mov rcx, qword [r15 + 8]
xor r9d, r9d
mov r8d, eax
mov rdx, rsi
call fcn.140285a10
jmp 0x140297bdd
test r14, r14
je 0x140297bd1
lock xadd dword [r14], edi
cmp edi, 1
jne 0x140297bd1
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_CancelIoEx]
mov rcx, qword [r15 + 8]
mov rdx, rsi
call fcn.140285b60
mov rbx, qword [rsp + 0x118]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret