Function at 0x1401d12e8
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
or dword [r8], 2
mov rdi, rcx
mov rcx, qword [rcx + 0x190]
xor r14b, r14b
xor ebx, ebx
movaps xmmword [rsp + 0x70], xmm6
mov rsi, r8
mov r15, rdx
test rcx, rcx
je 0x1401d136d
mov eax, dword [rdi + 0x6b8]
shr rax, 5
cmp rcx, rax
jge 0x1401d1564
cmp byte [rdi + 0x1c9], bl
jne 0x1401d1564
cmp byte [rdi + 0x1c4], bl
jne 0x1401d1564
mov rax, qword [rdi + 0x108]
sub rax, qword [rdi + 0x110]
add rax, rcx
cmp rax, qword [rdi + 0x1118]
je 0x1401d1564
mov rbx, rcx
mov rcx, rdi
call fcn.1401d01a8
test eax, eax
jne 0x1401d174d
test rbx, rbx
je 0x1401d139d
mov rdx, qword [rdi + 0x198]
mov rcx, qword [rdi + 0xc58]
cmp rdx, rcx
je 0x1401d139d
mov r8, rbx
call sub.VCRUNTIME140.dll_memmove
mov rdx, qword [rdi + 0xc58]
mov qword [rdi + 0x198], rdx
cmp byte [rdi + 0x1c4], r14b
jne 0x1401d1462
cmp dword [rdi + 0x160], 2
mov rcx, qword [rdi + 0x1a0]
jne 0x1401d140d
cmp dword [rcx + 0x38], 2
jne 0x1401d140d
and dword [rdi + 0x14c], 0xfffffffd
lea rcx, [rbp - 0x20]
mov dword [rdi + 0x160], 1
call fcn.1401d17fc
xor r8d, r8d
mov rcx, rdi
movups xmm0, xmmword [rax]
movdqu xmmword [rdi + 0x150], xmm0
and dword [rsi], 0xfffffffd
movsxd rdx, dword [rdi + 0x9d0]
call fcn.1401c1ce4
jmp 0x1401d174b
mov rax, qword [r15 + 0x2e8]
test dword [rax + 0x84], 0x40003
je 0x1401d1428
cmp dword [rcx + 0x38], 1
sete r14b
lea rax, [rdx + rbx]
mov rcx, rdi
mov qword [rdi + 0x198], rax
lea r8, [rbp + 0x30]
mov edx, dword [rdi + 0x6b8]
sub rdx, rbx
call fcn.1401cf93c
sub qword [rdi + 0x198], rbx
test eax, eax
jne 0x1401d174d
mov rsi, qword [rbp + 0x30]
add rsi, rbx
je 0x1401d1464
jmp 0x1401d1471
xor esi, esi
test byte [rdi + 0x14c], 0x20
jne 0x1401d174b
test rsi, rsi
jle 0x1401d173c
mov qword [rdi + 0x190], rsi
test r14b, r14b
jne 0x1401d1564
cmp byte [rdi + 0xa36], r14b
je 0x1401d1564
mov rax, qword [rdi + 0xd10]
test rax, rax
jne 0x1401d14d7
mov eax, dword [rdi + 0x6b8]
lea ecx, [rax + rax]
call qword [0x14047b580]
mov qword [rdi + 0xd10], rax
test rax, rax
jne 0x1401d14d7
lea rdx, str.Failed_to_alloc_scratch_buffer
mov rcx, rdi
call fcn.1401e3ae0
mov eax, 0x1b
jmp 0x1401d174d
test rbx, rbx
je 0x1401d14ee
mov rdx, qword [rdi + 0x198]
mov r8, rbx
mov rcx, rax
call fcn.1403318a0
mov rcx, rbx
jmp 0x1401d1545
mov rax, qword [rdi + 0x198]
mov dl, byte [rbx + rax]
mov rax, qword [rdi + 0xd10]
cmp dl, 0xa
jne 0x1401d153c
mov byte [rcx + rax], reloc.WS2_32.dll_listen
inc rcx
mov rax, qword [rdi + 0xd10]
mov byte [rcx + rax], dl
cmp byte [rdi + 0xa36], 0
jne 0x1401d153f
mov rax, qword [rdi + 0x1118]
cmp rax, 0xffffffffffffffff
je 0x1401d153f
inc rax
mov qword [rdi + 0x1118], rax
jmp 0x1401d153f
mov byte [rcx + rax], dl
inc rbx
inc rcx
cmp rbx, rsi
jl 0x1401d14f3
cmp rcx, rsi
je 0x1401d1564
mov rax, qword [rdi + 0xd10]
mov qword [rdi + 0x198], rax
mov qword [rdi + 0x190], rcx
mov r9, qword [rdi + 0x190]
lea rax, [rbp + 0x48]
mov r8, qword [rdi + 0x198]
mov rcx, rdi
mov rdx, qword [r15 + 0x310]
mov qword [rsp + 0x20], rax
call fcn.1401e6b6c
test eax, eax
jne 0x1401d174d
lea rcx, [rbp - 0x20]
call fcn.1401d17fc
movups xmm0, xmmword [rdi + 0x1b0]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
movups xmm6, xmmword [rax]
movdqu xmmword [rbp - 0x30], xmm0
movdqu xmmword [rbp - 0x20], xmm6
call fcn.1401d1874
mov r14d, 4
cmp rax, 0x3e8
jle 0x1401d1631
and qword [rsp + 0x40], 0
lea rax, [rbp + 0x40]
and qword [rsp + 0x38], 0
xor r9d, r9d
mov rbx, qword [r15 + 0x310]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0x4004747b
lea rax, [rbp + 0x30]
mov dword [rsp + 0x28], r14d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x1401d1629
lea r9, [rbp + 0x30]
mov dword [rsp + 0x20], r14d
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
movdqu xmmword [rdi + 0x1b0], xmm6
mov rax, qword [rdi + 0x110]
test rax, rax
je 0x1401d1672
mov rbx, qword [rbp + 0x48]
mov edx, 2
mov r8, qword [rdi + 0x198]
cmp rax, rbx
mov rcx, rdi
cmovl rbx, rax
mov r9, rbx
call fcn.1401e3a00
mov rcx, qword [rbp + 0x48]
sub qword [rdi + 0x110], rbx
mov rsi, rcx
sub rsi, rbx
jmp 0x1401d1679
mov rcx, qword [rbp + 0x48]
mov rsi, rcx
test rsi, rsi
je 0x1401d16b6
mov r8, qword [rdi + 0x198]
mov r9, rsi
sub r8, rsi
mov edx, r14d
add r8, rcx
mov rcx, rdi
call fcn.1401e3a00
mov rdx, qword [rdi + 0x108]
mov rcx, rdi
add rdx, rsi
mov qword [rdi + 0x108], rdx
call fcn.1401e2d94
mov rcx, qword [rbp + 0x48]
cmp byte [rdi + 0x1c9], 0
je 0x1401d16c8
cmp byte [rdi + 0x1cb], 0
je 0x1401d16f2
mov rax, qword [rdi + 0x1118]
cmp qword [rdi + 0x108], rax
jne 0x1401d16f2
lea rdx, str.We_are_completely_uploaded_and_fine
mov byte [rdi + 0x1c4], 1
mov rcx, rdi
call fcn.1401e3bac
mov rcx, qword [rbp + 0x48]
mov rax, qword [rdi + 0x190]
cmp rax, rcx
je 0x1401d1711
sub rax, rcx
add qword [rdi + 0x198], rcx
mov qword [rdi + 0x190], rax
jmp 0x1401d174b
mov rcx, rdi
call fcn.1401d01a8
test eax, eax
jne 0x1401d174d
mov rax, qword [rdi + 0xc58]
and qword [rdi + 0x190], 0
cmp byte [rdi + 0x1c4], 0
mov qword [rdi + 0x198], rax
je 0x1401d174b
and dword [rdi + 0x14c], 0xfffffffd
mov rcx, rdi
call fcn.1401e0ef8
xor eax, eax
mov rbx, qword [rsp + 0xb8]
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret