Function at 0x1401b72a0
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1403f80a0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r14d, r14d
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov bpl, r14b
cmp qword [rcx + 0x120], r14
jne 0x1401b72e4
cmp qword [rcx + 0x128], r14
jne 0x1401b72e4
lea edx, [r14 + 7]
call fcn.1401b7860
or dword [rdi], 2
cmp dword [rbx + 0x208], r14d
jne 0x1401b74fd
mov rcx, rbx
call fcn.1401b6150
test eax, eax
jne 0x1401b7658
mov rax, qword [rbx + 0x1120]
mov qword [rbx + 0x210], rax
cmp byte [rbx + 0x1f4], r14b
jne 0x1401b73b9
cmp dword [rbx + 0x1c0], 2
mov rcx, qword [rbx + 0x220]
jne 0x1401b7378
cmp dword [rcx + 0x218], 2
jne 0x1401b7378
and dword [rbx + 0x1f0], 0xfffffffd
lea rcx, [rsp + 0x58]
mov dword [rbx + 0x1c0], 1
call fcn.1401b01d0
xor r8d, r8d
mov rcx, rbx
movups xmm0, xmmword [rax]
movdqu xmmword [rbx + 0x1b0], xmm0
and dword [rdi], 0xfffffffd
movsxd rdx, dword [rbx + 0xe8c]
call fcn.14019e650
jmp 0x1401b7656
mov rax, qword [rsi + 0x408]
test dword [rax + 0x7c], 0x40003
je 0x1401b7393
cmp dword [rcx + 0x218], 1
sete bpl
mov rdx, qword [rbx + 0xba8]
lea r8, [rsp + 0x58]
mov rcx, rsi
call fcn.1401b5b80
test eax, eax
jne 0x1401b7658
mov edi, dword [rsp + 0x58]
test edi, edi
je 0x1401b73bc
jmp 0x1401b73c9
mov edi, r14d
test byte [rbx + 0x1f0], 0x20
jne 0x1401b7656
test edi, edi
jg 0x1401b73f6
and dword [rbx + 0x1f0], 0xfffffffd
cmp byte [rsi + 0x3d3], r14b
je 0x1401b7656
mov rcx, rsi
call fcn.1401b63e0
test eax, eax
je 0x1401b7656
jmp 0x1401b7658
mov dword [rbx + 0x208], edi
test bpl, bpl
jne 0x1401b74db
cmp byte [rbx + 0x9e2], r14b
je 0x1401b74db
cmp qword [rbx + 0x11a0], r14
jne 0x1401b7450
mov rcx, qword [rbx + 0xba8]
add rcx, rcx
call qword [fcn.14013ec80]
mov qword [rbx + 0x11a0], rax
test rax, rax
jne 0x1401b7450
lea rdx, str.Failed_to_alloc_scratch_buffer_
mov rcx, rbx
call fcn.1401ad6b0
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1401b7658
movsxd r10, edi
mov ecx, r14d
test edi, edi
jle 0x1401b74c5
mov r8, r14
mov rdx, r14
mov rax, qword [rbx + 0x210]
mov r9b, byte [r8 + rax]
mov rax, qword [rbx + 0x11a0]
cmp r9b, 0xa
jne 0x1401b74ae
mov byte [rdx + rax], reloc.WS2_32.dll_listen
inc ecx
mov rax, qword [rbx + 0x11a0]
inc rdx
mov byte [rdx + rax], r9b
cmp byte [rbx + 0x9e2], r14b
jne 0x1401b74b2
mov rax, qword [rbx + 0x14f0]
cmp rax, 0xffffffffffffffff
je 0x1401b74b2
inc rax
mov qword [rbx + 0x14f0], rax
jmp 0x1401b74b2
mov byte [rdx + rax], r9b
inc ecx
inc r8
inc rdx
mov eax, ecx
cmp r8, r10
jl 0x1401b7460
cmp eax, edi
je 0x1401b74db
mov rax, qword [rbx + 0x11a0]
mov edi, ecx
mov qword [rbx + 0x210], rax
mov dword [rbx + 0x208], ecx
mov rax, qword [rsi + 0x408]
test dword [rax + 0x7c], 0x30000
je 0x1401b74fd
mov edx, edi
mov rcx, rsi
call fcn.1401c53c0
test eax, eax
jne 0x1401b7658
movsxd r9, dword [rbx + 0x208]
lea rax, [rsp + 0x50]
mov r8, qword [rbx + 0x210]
mov rcx, rsi
mov rdx, qword [rsi + 0x440]
mov qword [rsp + 0x20], rax
call fcn.1401add40
test eax, eax
jne 0x1401b7658
mov rdi, qword [rsi + 0x440]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], r14
mov ebp, 4
mov qword [rsp + 0x38], r14
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
lea rax, [rsp + 0x54]
mov dword [rsp + 0x28], ebp
mov edx, 0x4004747b
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x1401b758f
lea r9, [rsp + 0x54]
mov dword [rsp + 0x20], ebp
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp byte [rbx + 0xc00], r14b
je 0x1401b75ae
movsxd r9, dword [rsp + 0x50]
mov edx, ebp
mov r8, qword [rbx + 0x210]
mov rcx, rbx
call fcn.1401ad5e0
mov rdx, qword [rbx + 0x128]
movsxd rcx, dword [rsp + 0x50]
add rdx, rcx
mov qword [rbx + 0x128], rdx
cmp byte [rbx + 0x219], r14b
je 0x1401b75d6
cmp byte [rbx + 0x21b], r14b
je 0x1401b75e6
cmp rdx, qword [rbx + 0x14f0]
jne 0x1401b75e6
mov byte [rbx + 0x1f4], 1
mov eax, dword [rbx + 0x208]
cmp eax, ecx
je 0x1401b7601
sub eax, ecx
add qword [rbx + 0x210], rcx
mov dword [rbx + 0x208], eax
jmp 0x1401b7647
mov rcx, rbx
call fcn.1401b6150
test eax, eax
jne 0x1401b7658
mov rax, qword [rbx + 0x1120]
mov qword [rbx + 0x210], rax
mov dword [rbx + 0x208], r14d
cmp byte [rbx + 0x1f4], r14b
je 0x1401b7647
and dword [rbx + 0x1f0], 0xfffffffd
cmp byte [rsi + 0x3d3], r14b
je 0x1401b7647
mov rcx, rsi
call fcn.1401b63e0
test eax, eax
jne 0x1401b7658
mov rdx, qword [rbx + 0x128]
mov rcx, rbx
call fcn.1401b77b0
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401304f0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret