Function at 0x1400e4ce0
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
or dword [r8], 2
mov rdi, rcx
mov rcx, qword [rcx + 0x198]
xor bpl, bpl
xor ebx, ebx
mov rsi, r8
mov r14, rdx
test rcx, rcx
je 0x1400e4d66
mov eax, dword [rdi + 0x6c0]
shr rax, 5
cmp rcx, rax
jge 0x1400e4f92
cmp byte [rdi + 0x1d1], bl
jne 0x1400e4f92
cmp byte [rdi + 0x1cc], bl
jne 0x1400e4f92
mov rax, qword [rdi + 0x108]
sub rax, qword [rdi + 0x110]
add rax, rcx
cmp rax, qword [rdi + 0x1120]
je 0x1400e4f92
mov rbx, rcx
mov rax, qword [rdi + 0xc60]
test rax, rax
jne 0x1400e4d95
mov ecx, dword [rdi + 0x6c0]
mov rax, qword [fcn.140154a40]
call qword [case.0x1400cc851.0]
mov qword [rdi + 0xc60], rax
test rax, rax
je 0x1400e4eeb
mov rcx, rax
test rbx, rbx
je 0x1400e4db8
mov rdx, qword [rdi + 0x1a0]
cmp rdx, rax
je 0x1400e4db8
mov r8, rbx
call fcn.140175f40
mov rcx, qword [rdi + 0xc60]
mov qword [rdi + 0x1a0], rcx
cmp byte [rdi + 0x1cc], bpl
jne 0x1400e51c5
cmp dword [rdi + 0x168], 2
mov rdx, qword [rdi + 0x1a8]
jne 0x1400e4e2f
cmp dword [rdx + 0x38], 2
jne 0x1400e4e2f
and dword [rdi + 0x154], 0xfffffffd
lea rcx, [rsp + 0x90]
mov dword [rdi + 0x168], 1
call fcn.1400c5b60
xor r8d, r8d
mov rcx, rdi
movups xmm0, xmmword [rax]
movups xmmword [rdi + 0x158], xmm0
and dword [rsi], 0xfffffffd
movsxd rdx, dword [rdi + 0x9d8]
call fcn.1400bbc20
xor eax, eax
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [r14 + 0x2e8]
test dword [rax + 0x84], 0x40003
je 0x1400e4e4a
cmp dword [rdx + 0x38], 1
sete bpl
lea rax, [rcx + rbx]
mov rcx, rdi
mov qword [rdi + 0x1a0], rax
lea r8, [rsp + 0x60]
mov edx, dword [rdi + 0x6c0]
sub rdx, rbx
call fcn.1400e3130
sub qword [rdi + 0x1a0], rbx
test eax, eax
jne 0x1400e51df
mov rsi, qword [rsp + 0x60]
add rsi, rbx
je 0x1400e51c5
test rsi, rsi
jle 0x1400e51ce
mov qword [rdi + 0x198], rsi
test bpl, bpl
jne 0x1400e4f92
cmp byte [rdi + 0xa3e], bpl
je 0x1400e4f92
mov rax, qword [rdi + 0xd18]
test rax, rax
jne 0x1400e4efe
mov eax, dword [rdi + 0x6c0]
lea ecx, [rax + rax]
mov rax, qword [fcn.140154a40]
call qword [case.0x1400cc851.0]
mov qword [rdi + 0xd18], rax
test rax, rax
jne 0x1400e4efe
lea rdx, str.Failed_to_alloc_scratch_buffer
mov rcx, rdi
call fcn.1400d4150
mov eax, 0x1b
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
test rbx, rbx
je 0x1400e4f15
mov rdx, qword [rdi + 0x1a0]
mov r8, rbx
mov rcx, rax
call fcn.140175f40
mov rcx, rbx
cmp rbx, rsi
jge 0x1400e4f78
nop dword [rax]
mov rax, qword [rdi + 0x1a0]
movzx edx, byte [rbx + rax]
mov rax, qword [rdi + 0xd18]
cmp dl, 0xa
jne 0x1400e4f6a
mov byte [rax + rcx], ntohs
inc rcx
mov rax, qword [rdi + 0xd18]
mov byte [rcx + rax], dl
cmp byte [rdi + 0xa3e], 0
jne 0x1400e4f6d
mov rax, qword [rdi + 0x1120]
cmp rax, 0xffffffffffffffff
je 0x1400e4f6d
inc rax
mov qword [rdi + 0x1120], rax
jmp 0x1400e4f6d
mov byte [rax + rcx], dl
inc rbx
inc rcx
cmp rbx, rsi
jl 0x1400e4f20
cmp rcx, rsi
je 0x1400e4f92
mov rax, qword [rdi + 0xd18]
mov qword [rdi + 0x1a0], rax
mov qword [rdi + 0x198], rcx
mov r9, qword [rdi + 0x198]
lea rax, [rsp + 0x70]
mov r8, qword [rdi + 0x1a0]
mov rcx, rdi
mov rdx, qword [r14 + 0x310]
mov qword [rsp + 0x20], rax
call fcn.1400d4890
test eax, eax
jne 0x1400e51df
lea rcx, [rsp + 0x80]
call fcn.1400c5b60
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax]
movups xmmword [rsp + 0x90], xmm0
movups xmm0, xmmword [rdi + 0x1b8]
movaps xmmword [rsp + 0x80], xmm1
movaps xmmword [rsp + 0x60], xmm0
call fcn.1400c5bf0
cmp rax, 0x3e8
jle 0x1400e5087
mov rbx, qword [r14 + 0x310]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], 0
xor r9d, r9d
mov qword [rsp + 0x38], 0
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov edx, 0x4004747b
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x1400e5078
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rdi + 0x1b8], xmm0
mov rax, qword [rdi + 0x110]
test rax, rax
je 0x1400e50ca
mov rbx, qword [rsp + 0x70]
mov edx, 2
mov r8, qword [rdi + 0x1a0]
cmp rax, rbx
mov rcx, rdi
cmovl rbx, rax
mov r9, rbx
call fcn.1400d4060
mov rcx, qword [rsp + 0x70]
sub qword [rdi + 0x110], rbx
mov rsi, rcx
sub rsi, rbx
jmp 0x1400e50d2
mov rcx, qword [rsp + 0x70]
mov rsi, rcx
test rsi, rsi
je 0x1400e510f
mov r8, qword [rdi + 0x1a0]
mov r9, rsi
sub r8, rsi
mov edx, 4
add r8, rcx
mov rcx, rdi
call fcn.1400d4060
add qword [rdi + 0x108], rsi
mov rcx, rdi
mov rdx, qword [rdi + 0x108]
call fcn.1400e5580
mov rcx, qword [rsp + 0x70]
cmp byte [rdi + 0x1d1], 0
je 0x1400e5121
cmp byte [rdi + 0x1d3], 0
je 0x1400e514c
mov rax, qword [rdi + 0x1120]
cmp qword [rdi + 0x108], rax
jne 0x1400e514c
lea rdx, str.We_are_completely_uploaded_and_fine
mov byte [rdi + 0x1cc], 1
mov rcx, rdi
call fcn.1400d4240
mov rcx, qword [rsp + 0x70]
mov rax, qword [rdi + 0x198]
cmp rax, rcx
je 0x1400e5179
add qword [rdi + 0x1a0], rcx
sub rax, rcx
mov qword [rdi + 0x198], rax
xor eax, eax
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov rax, qword [rdi + 0xc60]
test rax, rax
jne 0x1400e51a8
mov ecx, dword [rdi + 0x6c0]
mov rax, qword [fcn.140154a40]
call qword [case.0x1400cc851.0]
mov qword [rdi + 0xc60], rax
test rax, rax
je 0x1400e4eeb
cmp byte [rdi + 0x1cc], 0
mov qword [rdi + 0x1a0], rax
mov qword [rdi + 0x198], 0
je 0x1400e51dd
jmp 0x1400e51ce
test byte [rdi + 0x154], 0x20
jne 0x1400e51dd
and dword [rdi + 0x154], 0xfffffffd
mov rcx, rdi
call fcn.1400d38e0
xor eax, eax
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret