Function at 0x140193098
Capabilities:
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
xor r12d, r12d
lea rdi, [rcx + 0xe8]
mov rbx, r8
mov r15, rdx
mov rsi, rcx
mov r14b, r12b
cmp qword [rdi + 0x10], r12
jne 0x1401930dd
cmp qword [rdi + 0x18], r12
jne 0x1401930dd
mov rdx, rcx
lea r8d, [r12 + 7]
lea rcx, [rbp - 0x10]
call fcn.1401a1608
or dword [rbx], 2
cmp qword [rdi + 0xb8], r12
jne 0x1401932ac
mov rcx, rsi
call fcn.140191ed0
test eax, eax
jne 0x14019343b
mov rax, qword [rsi + 0xd20]
mov qword [rdi + 0xc0], rax
cmp byte [rdi + 0xda], r12b
jne 0x1401931ad
cmp dword [rdi + 0x88], 2
mov rcx, qword [rdi + 0xc8]
jne 0x14019316a
cmp dword [rcx + 0x200], 2
jne 0x14019316a
and dword [rdi + 0x74], 0xfffffffd
lea rcx, [rbp - 0x10]
mov dword [rdi + 0x88], 1
call fcn.1401934dc
xor r8d, r8d
mov rcx, rsi
movups xmm0, xmmword [rax]
movdqu xmmword [rdi + 0x78], xmm0
and dword [rbx], 0xfffffffd
movsxd rdx, dword [rsi + 0xa98]
call fcn.140184e90
jmp 0x140193439
mov rax, qword [r15 + 0x428]
test dword [rax + 0x84], 0x40003
je 0x140193188
cmp dword [rcx + 0x200], 1
sete r14b
mov edx, dword [rsi + 0x720]
lea r8, [rbp + 0x40]
mov rcx, rsi
call fcn.140191690
test eax, eax
jne 0x14019343b
mov rbx, qword [rbp + 0x40]
test rbx, rbx
jne 0x1401931bd
jmp 0x1401931b0
mov rbx, r12
test byte [rdi + 0x74], 0x20
jne 0x140193439
test rbx, rbx
jg 0x1401931d7
mov rdx, rdi
mov rcx, rsi
call fcn.140191650
test eax, eax
je 0x140193439
jmp 0x14019343b
mov qword [rdi + 0xb8], rbx
test r14b, r14b
jne 0x1401932ac
cmp byte [rsi + 0xafe], r12b
je 0x1401932ac
cmp qword [rsi + 0xdd8], r12
jne 0x140193231
mov eax, dword [rsi + 0x720]
lea ecx, [rax + rax]
call qword [0x1404255b8]
mov qword [rsi + 0xdd8], rax
test rax, rax
jne 0x140193231
lea rdx, str.Failed_to_alloc_scratch_buffer
mov rcx, rsi
call fcn.1401a225c
mov eax, 0x1b
jmp 0x14019343b
mov rdx, r12
mov rcx, r12
mov rax, qword [rdi + 0xc0]
mov r8b, byte [rdx + rax]
mov rax, qword [rsi + 0xdd8]
cmp r8b, 0xa
jne 0x140193283
mov byte [rcx + rax], 0xd
inc rcx
mov rax, qword [rsi + 0xdd8]
mov byte [rcx + rax], r8b
cmp byte [rsi + 0xafe], r12b
jne 0x140193287
mov rax, qword [rsi + 0x1190]
cmp rax, 0xffffffffffffffff
je 0x140193287
inc rax
mov qword [rsi + 0x1190], rax
jmp 0x140193287
mov byte [rcx + rax], r8b
inc rdx
inc rcx
cmp rdx, rbx
jl 0x140193237
cmp rcx, rbx
je 0x1401932ac
mov rax, qword [rsi + 0xdd8]
mov qword [rdi + 0xc0], rax
mov qword [rdi + 0xb8], rcx
mov r9, qword [rdi + 0xb8]
lea rax, [rbp + 0x58]
mov r8, qword [rdi + 0xc0]
mov rcx, rsi
mov rdx, qword [r15 + 0x450]
mov qword [rsp + 0x20], rax
call fcn.1401a27f4
test eax, eax
jne 0x14019343b
mov rbx, qword [r15 + 0x450]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x40], r12
mov r15d, 4
mov qword [rsp + 0x38], r12
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rbp + 0x40]
mov dword [rsp + 0x28], r15d
mov edx, 0x4004747b
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ws2_32.dll_WSAIoctl]
test eax, eax
jne 0x14019333d
lea r9, [rbp + 0x40]
mov dword [rsp + 0x20], r15d
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.ws2_32.dll_setsockopt]
mov rax, qword [rdi + 0x30]
test rax, rax
je 0x140193378
mov rbx, qword [rbp + 0x58]
mov edx, 2
mov r8, qword [rdi + 0xc0]
cmp rax, rbx
mov rcx, rsi
cmovl rbx, rax
mov r9, rbx
call fcn.1401a2184
mov rcx, qword [rbp + 0x58]
sub qword [rdi + 0x30], rbx
mov r14, rcx
sub r14, rbx
jmp 0x14019337f
mov rcx, qword [rbp + 0x58]
mov r14, rcx
test r14, r14
je 0x1401933b3
mov r8, qword [rdi + 0xc0]
mov r9, r14
sub r8, r14
mov edx, r15d
add r8, rcx
mov rcx, rsi
call fcn.1401a2184
add qword [rdi + 0x18], r14
mov rcx, rsi
mov rdx, qword [rdi + 0x18]
call fcn.1401a1550
mov rcx, qword [rbp + 0x58]
cmp byte [rdi + 0xdf], r12b
je 0x1401933c5
cmp byte [rdi + 0xe1], r12b
je 0x1401933ec
mov rax, qword [rsi + 0x1190]
cmp qword [rdi + 0x18], rax
jne 0x1401933ec
lea rdx, str.We_are_completely_uploaded_and_fine
mov byte [rdi + 0xda], 1
mov rcx, rsi
call fcn.1401a2328
mov rcx, qword [rbp + 0x58]
mov rax, qword [rdi + 0xb8]
cmp rax, rcx
je 0x14019340b
sub rax, rcx
add qword [rdi + 0xc0], rcx
mov qword [rdi + 0xb8], rax
jmp 0x140193439
mov rcx, rsi
call fcn.140191ed0
test eax, eax
jne 0x14019343b
mov rax, qword [rsi + 0xd20]
mov qword [rdi + 0xc0], rax
mov qword [rdi + 0xb8], r12
cmp byte [rdi + 0xda], r12b
jne 0x1401931bf
xor eax, eax
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret