Function at 0x14005f700
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rdi, r9
mov ebx, r8d
mov r14, rdx
mov rsi, rcx
mov r12, qword [rsp + 0xd0]
mov rcx, qword [r12 + 0x10]
mov eax, dword [r12]
mov edx, eax
cmp rcx, 1
je 0x14005f747
cmp edx, 0x40
je 0x14005f782
test cl, 1
jne 0x14005f7e2
jmp 0x14005f7f4
mov rdx, qword [r12 + 8]
movabs r8, 0x4800144005b3
mulx r8, r8, r8
mov r9, rdx
sub r9, r8
shr r9, 1
add r9, r8
shr r9, 0x14
imul r8d, r9d, 0x1ffff7
sub edx, r8d
imul edx, edx, 0x3e8
add edx, eax
cmp edx, 0x40
jne 0x14005f739
mov rax, qword [0x1400c1358]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14005f7ba
mov rax, qword [0x1400c1350]
lea rcx, [0x1400c1350]
mov edx, 0x2745
call qword [rax + 0x30]
mov ecx, 2
test al, al
je 0x14005f7bf
mov ecx, 3
mov qword [r12], 0x2745
lea rax, [0x1400c1350]
mov qword [r12 + 8], rax
mov qword [r12 + 0x10], rcx
mov eax, 0x2745
test cl, 1
je 0x14005f7f4
cmp rcx, 1
jne 0x14005f9eb
test eax, eax
jne 0x14005f9eb
mov r15, qword [rsp + 0xc8]
test rdi, rdi
je 0x14005f8e7
mov r13, qword [rsp + 0xc0]
test r13, r13
je 0x14005f8e7
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x54], 0
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x44], 0
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov rcx, r14
xor edx, edx
mov r8d, ebx
mov r9d, ebx
call sub.MSWSOCK.dll_GetAcceptExSockaddrs
movsxd rbx, dword [rsp + 0x44]
cmp qword [r13], rbx
jae 0x14005f8d3
mov rax, qword [0x1400c1358]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14005f8b3
mov rax, qword [0x1400c1350]
lea rcx, [0x1400c1350]
mov edx, 0x2726
call qword [rax + 0x30]
mov ecx, 2
test al, al
je 0x14005f8b8
mov ecx, 3
mov qword [r12], 0x2726
lea rax, [0x1400c1350]
mov qword [r12 + 8], rax
mov qword [r12 + 0x10], rcx
jmp 0x14005f8e7
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
mov r8, rbx
call fcn.14008af60
mov qword [r13], rbx
mov qword [rsp + 0x48], rsi
cmp r15, 0xffffffffffffffff
je 0x14005f946
mov dword [rsp + 0x20], 8
lea r9, [rsp + 0x48]
mov rcx, r15
mov edx, 0xffff
mov r8d, 0x700b
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14005f99e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov rax, qword [0x1400c1358]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
jne 0x14005f9b3
test esi, esi
setne al
jmp 0x14005f9c6
mov rax, qword [0x1400c1358]
shr rax, 1
movabs rcx, 0x595588bd12bf6fe8
cmp rax, rcx
je 0x14005f97e
mov rax, qword [0x1400c1350]
lea rcx, [0x1400c1350]
mov edx, 0x2719
call qword [rax + 0x30]
mov ecx, 2
test al, al
je 0x14005f983
mov ecx, 3
mov qword [r12], 0x2719
lea rax, [0x1400c1350]
mov qword [r12 + 8], rax
mov qword [r12 + 0x10], rcx
jmp 0x14005f9eb
vxorps xmm0, xmm0, xmm0
vmovups xmmword [r12], xmm0
mov qword [r12 + 0x10], 0
jmp 0x14005f9eb
mov rax, qword [0x1400c1350]
lea rcx, [0x1400c1350]
mov edx, esi
call qword [rax + 0x30]
movzx eax, al
or rax, 2
mov dword [r12], esi
mov dword [r12 + 4], 0
lea rcx, [0x1400c1350]
mov qword [r12 + 8], rcx
mov qword [r12 + 0x10], rax
add rsp, 0x60
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret