Function at 0x140087500
Capabilities:
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1402b1510]
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 0x140087544
cmp qword [rcx + 0x128], r14
jne 0x140087544
lea edx, [r14 + 7]
call fcn.140087aa8
or dword [rdi], 2
cmp dword [rbx + 0x208], r14d
jne 0x14008775d
mov rcx, rbx
call fcn.1400863ec
test eax, eax
jne 0x1400878b8
mov rax, qword [rbx + 0x1120]
mov qword [rbx + 0x210], rax
cmp byte [rbx + 0x1f4], r14b
jne 0x140087619
cmp dword [rbx + 0x1c0], 2
mov rcx, qword [rbx + 0x220]
jne 0x1400875d8
cmp dword [rcx + 0x218], 2
jne 0x1400875d8
and dword [rbx + 0x1f0], 0xfffffffd
lea rcx, [rsp + 0x58]
mov dword [rbx + 0x1c0], 1
call fcn.140080634
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.14006f218
jmp 0x1400878b6
mov rax, qword [rsi + 0x408]
test dword [rax + 0x7c], 0x40003
je 0x1400875f3
cmp dword [rcx + 0x218], 1
sete bpl
mov rdx, qword [rbx + 0xba8]
lea r8, [rsp + 0x58]
mov rcx, rsi
call fcn.140085e28
test eax, eax
jne 0x1400878b8
mov edi, dword [rsp + 0x58]
test edi, edi
je 0x14008761c
jmp 0x140087629
mov edi, r14d
test byte [rbx + 0x1f0], 0x20
jne 0x1400878b6
test edi, edi
jg 0x140087656
and dword [rbx + 0x1f0], 0xfffffffd
cmp byte [rsi + 0x3d3], r14b
je 0x1400878b6
mov rcx, rsi
call fcn.14008666c
test eax, eax
je 0x1400878b6
jmp 0x1400878b8
mov dword [rbx + 0x208], edi
test bpl, bpl
jne 0x14008773b
cmp byte [rbx + 0x9e2], r14b
je 0x14008773b
cmp qword [rbx + 0x11a0], r14
jne 0x1400876b0
mov rcx, qword [rbx + 0xba8]
add rcx, rcx
call qword [section..data]
mov qword [rbx + 0x11a0], rax
test rax, rax
jne 0x1400876b0
lea rdx, str.Failed_to_alloc_scratch_buffer_
mov rcx, rbx
call fcn.14007dc94
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x1400878b8
movsxd r10, edi
mov ecx, r14d
test edi, edi
jle 0x140087725
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 0x14008770e
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 0x140087712
mov rax, qword [rbx + 0x14f0]
cmp rax, 0xffffffffffffffff
je 0x140087712
inc rax
mov qword [rbx + 0x14f0], rax
jmp 0x140087712
mov byte [rdx + rax], r9b
inc ecx
inc r8
inc rdx
mov eax, ecx
cmp r8, r10
jl 0x1400876c0
cmp eax, edi
je 0x14008773b
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 0x14008775d
mov edx, edi
mov rcx, rsi
call fcn.1400951dc
test eax, eax
jne 0x1400878b8
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.14007e2f4
test eax, eax
jne 0x1400878b8
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 0x1400877ef
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 0x14008780e
movsxd r9, dword [rsp + 0x50]
mov edx, ebp
mov r8, qword [rbx + 0x210]
mov rcx, rbx
call fcn.14007dbc8
mov rdx, qword [rbx + 0x128]
movsxd rcx, dword [rsp + 0x50]
add rdx, rcx
mov qword [rbx + 0x128], rdx
cmp byte [rbx + 0x219], r14b
je 0x140087836
cmp byte [rbx + 0x21b], r14b
je 0x140087846
cmp rdx, qword [rbx + 0x14f0]
jne 0x140087846
mov byte [rbx + 0x1f4], 1
mov eax, dword [rbx + 0x208]
cmp eax, ecx
je 0x140087861
sub eax, ecx
add qword [rbx + 0x210], rcx
mov dword [rbx + 0x208], eax
jmp 0x1400878a7
mov rcx, rbx
call fcn.1400863ec
test eax, eax
jne 0x1400878b8
mov rax, qword [rbx + 0x1120]
mov qword [rbx + 0x210], rax
mov dword [rbx + 0x208], r14d
cmp byte [rbx + 0x1f4], r14b
je 0x1400878a7
and dword [rbx + 0x1f0], 0xfffffffd
cmp byte [rsi + 0x3d3], r14b
je 0x1400878a7
mov rcx, rsi
call fcn.14008666c
test eax, eax
jne 0x1400878b8
mov rdx, qword [rbx + 0x128]
mov rcx, rbx
call fcn.140087a00
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1401d08c0
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret