Function at 0x180019560
Capabilities:
Check mutex on windows
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x1800a2008]
xor rax, rsp
mov qword [rbp + 0x110], rax
xor edi, edi
mov ecx, 0x202
lea rdx, [rsp + 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x18001976e
lea rcx, [0x1800a75e0]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rdi
lea ecx, [rdi + 0x58]
call fcn.18002e0d0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
lea ecx, [rdi + 0x40]
call fcn.18002e0d0
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rsp + 0x30], rax
mov r8d, dword [0x1800a2a70]
lea rdx, [0x1800a2a74]
lea rcx, [rsp + 0x20]
call fcn.180029250
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + 8]
mov rdx, rcx
cmp byte [rax + 0x19], dil
jne 0x180019649
nop dword [rax]
cmp word [rax + 0x20], 0x1e
jae 0x18001963d
mov rax, qword [rax + 0x10]
jmp 0x180019643
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x180019630
cmp byte [rdx + 0x19], 0
jne 0x1800197d9
mov ebx, 0x1e
cmp bx, word [rdx + 0x20]
jb 0x1800197d9
mov word [rsp + 0x40], bx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.18000b4e0
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 4
test ecx, ecx
je 0x1800197d4
xor r9d, r9d
mov r8d, ebx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.18002a230
lea r8, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae r8, qword [rsp + 0x48]
lea edx, [rbx - 0x1d]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0x60]
cmp eax, 0xb7
jne 0x180019794
cmp rdx, 8
jb 0x18001970d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180019708
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800197c8
call fcn.18002e10c
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], di
mov r8, qword [rsp + 0x30]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.18002c6e0
mov edx, 0x40
mov rcx, qword [rsp + 0x30]
call fcn.18002e10c
mov r8, qword [rsp + 0x20]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x20]
call fcn.18002c7c0
mov edx, 0x58
mov rcx, qword [rsp + 0x20]
call fcn.18002e10c
xor eax, eax
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.18002e0b0
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
cmp rdx, 8
jb 0x1800197d4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800197cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800197cf
call qword [0x18008f290]
int3
call fcn.18002e10c
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x1800197fc
cmp word [rax + 0x20], 0x1c
jae 0x1800197f0
mov rax, qword [rax + 0x10]
jmp 0x1800197f6
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1800197e3
cmp byte [rcx + 0x19], 0
jne 0x180019867
mov ebx, 0x1c
cmp bx, word [rcx + 0x20]
jb 0x180019867
mov word [rsp + 0x40], bx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.18000b4e0
mov rcx, qword [rax + 8]
sub rcx, qword [rax]
sar rcx, 4
test ecx, ecx
je 0x180019867
xor r8d, r8d
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.180009370
mov ebx, eax
xor ecx, ecx
call fcn.180058818
cmp rbx, rax
jle 0x180019867
nop dword [rax]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.180058818
cmp rbx, rax
jg 0x180019850
lea rcx, [rsp + 0x20]
call fcn.1800190e0
test al, al
je 0x180019720
call fcn.1800011a0
test al, al
je 0x180019896
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.1800011a0
test al, al
jne 0x180019882
xor ecx, ecx
call fcn.180058464
int3