Function at 0x140269b84
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 + 0x198]
xor r14b, r14b
xor ebx, ebx
movaps xmmword [rsp + 0x70], xmm6
mov rsi, r8
mov r15, rdx
test rcx, rcx
je 0x140269c09
mov eax, dword [rdi + 0x6c0]
shr rax, 5
cmp rcx, rax
jge 0x140269e00
cmp byte [rdi + 0x1d1], bl
jne 0x140269e00
cmp byte [rdi + 0x1cc], bl
jne 0x140269e00
mov rax, qword [rdi + 0x108]
sub rax, qword [rdi + 0x110]
add rax, rcx
cmp rax, qword [rdi + 0x1120]
je 0x140269e00
mov rbx, rcx
mov rcx, rdi
call fcn.140268ab4
test eax, eax
jne 0x140269fe9
test rbx, rbx
je 0x140269c39
mov rdx, qword [rdi + 0x1a0]
mov rcx, qword [rdi + 0xc60]
cmp rdx, rcx
je 0x140269c39
mov r8, rbx
call fcn.1402afaf0
mov rdx, qword [rdi + 0xc60]
mov qword [rdi + 0x1a0], rdx
cmp byte [rdi + 0x1cc], r14b
jne 0x140269cfe
cmp dword [rdi + 0x168], 2
mov rcx, qword [rdi + 0x1a8]
jne 0x140269ca9
cmp dword [rcx + 0x38], 2
jne 0x140269ca9
and dword [rdi + 0x154], 0xfffffffd
lea rcx, [rbp - 0x20]
mov dword [rdi + 0x168], 1
call fcn.14026a098
xor r8d, r8d
mov rcx, rdi
movups xmm0, xmmword [rax]
movdqu xmmword [rdi + 0x158], xmm0
and dword [rsi], 0xfffffffd
movsxd rdx, dword [rdi + 0x9d8]
call fcn.14025ae84
jmp 0x140269fe7
mov rax, qword [r15 + 0x2e8]
test dword [rax + 0x84], 0x40003
je 0x140269cc4
cmp dword [rcx + 0x38], 1
sete r14b
lea rax, [rdx + rbx]
mov rcx, rdi
mov qword [rdi + 0x1a0], rax
lea r8, [rbp + 0x30]
mov edx, dword [rdi + 0x6c0]
sub rdx, rbx
call fcn.140268248
sub qword [rdi + 0x1a0], rbx
test eax, eax
jne 0x140269fe9
mov rsi, qword [rbp + 0x30]
add rsi, rbx
je 0x140269d00
jmp 0x140269d0d
xor esi, esi
test byte [rdi + 0x154], 0x20
jne 0x140269fe7
test rsi, rsi
jle 0x140269fd8
mov qword [rdi + 0x198], rsi
test r14b, r14b
jne 0x140269e00
cmp byte [rdi + 0xa3e], r14b
je 0x140269e00
mov rax, qword [rdi + 0xd18]
test rax, rax
jne 0x140269d73
mov eax, dword [rdi + 0x6c0]
lea ecx, [rax + rax]
call qword [str.HI_]
mov qword [rdi + 0xd18], rax
test rax, rax
jne 0x140269d73
lea rdx, str.Failed_to_alloc_scratch_buffer
mov rcx, rdi
call fcn.14027c1b0
mov eax, 0x1b
jmp 0x140269fe9
test rbx, rbx
je 0x140269d8a
mov rdx, qword [rdi + 0x1a0]
mov r8, rbx
mov rcx, rax
call fcn.1402afaf0
mov rcx, rbx
jmp 0x140269de1
mov rax, qword [rdi + 0x1a0]
mov dl, byte [rbx + rax]
mov rax, qword [rdi + 0xd18]
cmp dl, 0xa
jne 0x140269dd8
mov byte [rcx + rax], 0xd
inc rcx
mov rax, qword [rdi + 0xd18]
mov byte [rcx + rax], dl
cmp byte [rdi + 0xa3e], 0
jne 0x140269ddb
mov rax, qword [rdi + 0x1120]
cmp rax, 0xffffffffffffffff
je 0x140269ddb
inc rax
mov qword [rdi + 0x1120], rax
jmp 0x140269ddb
mov byte [rcx + rax], dl
inc rbx
inc rcx
cmp rbx, rsi
jl 0x140269d8f
cmp rcx, rsi
je 0x140269e00
mov rax, qword [rdi + 0xd18]
mov qword [rdi + 0x1a0], rax
mov qword [rdi + 0x198], rcx
mov r9, qword [rdi + 0x198]
lea rax, [rbp + 0x48]
mov r8, qword [rdi + 0x1a0]
mov rcx, rdi
mov rdx, qword [r15 + 0x310]
mov qword [rsp + 0x20], rax
call fcn.14027c854
test eax, eax
jne 0x140269fe9
lea rcx, [rbp - 0x20]
call fcn.14026a098
movups xmm0, xmmword [rdi + 0x1b8]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x20]
movups xmm6, xmmword [rax]
movdqu xmmword [rbp - 0x30], xmm0
movdqu xmmword [rbp - 0x20], xmm6
call fcn.14026a110
mov r14d, 4
cmp rax, 0x3e8
jle 0x140269ecd
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 0x140269ec5
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 + 0x1b8], xmm6
mov rax, qword [rdi + 0x110]
test rax, rax
je 0x140269f0e
mov rbx, qword [rbp + 0x48]
mov edx, 2
mov r8, qword [rdi + 0x1a0]
cmp rax, rbx
mov rcx, rdi
cmovl rbx, rax
mov r9, rbx
call fcn.14027c0d4
mov rcx, qword [rbp + 0x48]
sub qword [rdi + 0x110], rbx
mov rsi, rcx
sub rsi, rbx
jmp 0x140269f15
mov rcx, qword [rbp + 0x48]
mov rsi, rcx
test rsi, rsi
je 0x140269f52
sub rcx, rsi
mov r9, rsi
add rcx, qword [rdi + 0x1a0]
mov edx, r14d
mov r8, rcx
mov rcx, rdi
call fcn.14027c0d4
mov rdx, qword [rdi + 0x108]
mov rcx, rdi
add rdx, rsi
mov qword [rdi + 0x108], rdx
call fcn.14027b468
mov rcx, qword [rbp + 0x48]
cmp byte [rdi + 0x1d1], 0
je 0x140269f64
cmp byte [rdi + 0x1d3], 0
je 0x140269f8e
mov rax, qword [rdi + 0x1120]
cmp qword [rdi + 0x108], rax
jne 0x140269f8e
lea rdx, str.We_are_completely_uploaded_and_fine
mov byte [rdi + 0x1cc], 1
mov rcx, rdi
call fcn.14027c27c
mov rcx, qword [rbp + 0x48]
mov rax, qword [rdi + 0x198]
cmp rax, rcx
je 0x140269fad
sub rax, rcx
add qword [rdi + 0x1a0], rcx
mov qword [rdi + 0x198], rax
jmp 0x140269fe7
mov rcx, rdi
call fcn.140268ab4
test eax, eax
jne 0x140269fe9
mov rax, qword [rdi + 0xc60]
and qword [rdi + 0x198], 0
cmp byte [rdi + 0x1cc], 0
mov qword [rdi + 0x1a0], rax
je 0x140269fe7
and dword [rdi + 0x154], 0xfffffffd
mov rcx, rdi
call fcn.14027958c
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