Function at 0x14018a034
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 0x14018a079
cmp qword [rdi + 0x18], r12
jne 0x14018a079
mov rdx, rcx
lea r8d, [r12 + 7]
lea rcx, [rbp - 0x10]
call fcn.1401985a4
or dword [rbx], 2
cmp qword [rdi + 0xb8], r12
jne 0x14018a248
mov rcx, rsi
call fcn.140188e6c
test eax, eax
jne 0x14018a3d7
mov rax, qword [rsi + 0xd20]
mov qword [rdi + 0xc0], rax
cmp byte [rdi + 0xda], r12b
jne 0x14018a149
cmp dword [rdi + 0x88], 2
mov rcx, qword [rdi + 0xc8]
jne 0x14018a106
cmp dword [rcx + 0x200], 2
jne 0x14018a106
and dword [rdi + 0x74], 0xfffffffd
lea rcx, [rbp - 0x10]
mov dword [rdi + 0x88], 1
call fcn.14018a478
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.14017be20
jmp 0x14018a3d5
mov rax, qword [r15 + 0x428]
test dword [rax + 0x84], 0x40003
je 0x14018a124
cmp dword [rcx + 0x200], 1
sete r14b
mov edx, dword [rsi + 0x720]
lea r8, [rbp + 0x40]
mov rcx, rsi
call fcn.14018862c
test eax, eax
jne 0x14018a3d7
mov rbx, qword [rbp + 0x40]
test rbx, rbx
jne 0x14018a159
jmp 0x14018a14c
mov rbx, r12
test byte [rdi + 0x74], 0x20
jne 0x14018a3d5
test rbx, rbx
jg 0x14018a173
mov rdx, rdi
mov rcx, rsi
call fcn.1401885ec
test eax, eax
je 0x14018a3d5
jmp 0x14018a3d7
mov qword [rdi + 0xb8], rbx
test r14b, r14b
jne 0x14018a248
cmp byte [rsi + 0xafe], r12b
je 0x14018a248
cmp qword [rsi + 0xdd8], r12
jne 0x14018a1cd
mov eax, dword [rsi + 0x720]
lea ecx, [rax + rax]
call qword [0x1404195d8]
mov qword [rsi + 0xdd8], rax
test rax, rax
jne 0x14018a1cd
lea rdx, str.Failed_to_alloc_scratch_buffer
mov rcx, rsi
call fcn.1401991f8
mov eax, 0x1b
jmp 0x14018a3d7
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 0x14018a21f
mov byte [rcx + rax], reloc.WS2_32.dll_listen
inc rcx
mov rax, qword [rsi + 0xdd8]
mov byte [rcx + rax], r8b
cmp byte [rsi + 0xafe], r12b
jne 0x14018a223
mov rax, qword [rsi + 0x1190]
cmp rax, 0xffffffffffffffff
je 0x14018a223
inc rax
mov qword [rsi + 0x1190], rax
jmp 0x14018a223
mov byte [rcx + rax], r8b
inc rdx
inc rcx
cmp rdx, rbx
jl 0x14018a1d3
cmp rcx, rbx
je 0x14018a248
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.140199790
test eax, eax
jne 0x14018a3d7
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 0x14018a2d9
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 0x14018a314
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.140199120
mov rcx, qword [rbp + 0x58]
sub qword [rdi + 0x30], rbx
mov r14, rcx
sub r14, rbx
jmp 0x14018a31b
mov rcx, qword [rbp + 0x58]
mov r14, rcx
test r14, r14
je 0x14018a34f
mov r8, qword [rdi + 0xc0]
mov r9, r14
sub r8, r14
mov edx, r15d
add r8, rcx
mov rcx, rsi
call fcn.140199120
add qword [rdi + 0x18], r14
mov rcx, rsi
mov rdx, qword [rdi + 0x18]
call fcn.1401984ec
mov rcx, qword [rbp + 0x58]
cmp byte [rdi + 0xdf], r12b
je 0x14018a361
cmp byte [rdi + 0xe1], r12b
je 0x14018a388
mov rax, qword [rsi + 0x1190]
cmp qword [rdi + 0x18], rax
jne 0x14018a388
lea rdx, str.We_are_completely_uploaded_and_fine
mov byte [rdi + 0xda], 1
mov rcx, rsi
call fcn.1401992c4
mov rcx, qword [rbp + 0x58]
mov rax, qword [rdi + 0xb8]
cmp rax, rcx
je 0x14018a3a7
sub rax, rcx
add qword [rdi + 0xc0], rcx
mov qword [rdi + 0xb8], rax
jmp 0x14018a3d5
mov rcx, rsi
call fcn.140188e6c
test eax, eax
jne 0x14018a3d7
mov rax, qword [rsi + 0xd20]
mov qword [rdi + 0xc0], rax
mov qword [rdi + 0xb8], r12
cmp byte [rdi + 0xda], r12b
jne 0x14018a15b
xor eax, eax
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret