Function at 0x180010078
Capabilities:
Check os version
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x210
mov eax, dword [0x1800593d0]
mov r13, qword [0x180059330]
mov r12d, 8
xor eax, 0xedb88320
lea r9d, [r12 - 7]
lea rdx, [0x18005d402]
lea rcx, [rsp + 0x60]
xor ebp, ebp
xor r8d, r8d
and qword [rsp + 0x50], rbp
mov dword [rsp + 0x60], eax
xor r14d, r14d
xor ebx, ebx
call fcn.180018a70
mov rdi, rax
test rax, rax
je 0x18001012d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180059270]
xor edx, edx
inc eax
mov esi, eax
lea r8, [rax + rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18001011b
mov rcx, rdi
call fcn.1800178f8
lea rcx, [rbx + 8]
mov r8, rsi
mov rdx, rdi
call qword [sym.imp.ntdll.dll_mbstowcs]
mov rcx, qword [0x180059270]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [0x1800593a8], rbx
test rbx, rbx
je 0x18001035a
and qword [rbx], rbp
lea r8, [rsp + 0x258]
lea rdx, [rsp + 0x50]
lea rcx, [0x18005d1ef]
call fcn.180004ea4
mov rbx, qword [rsp + 0x50]
test eax, eax
jne 0x18001019e
mov r8d, dword [0x1800593d0]
mov edx, dword [rsp + 0x258]
xor r9d, r9d
mov rcx, rbx
call fcn.180044b7c
cmp dword [rsp + 0x258], 0x45
jb 0x18001018a
cmp byte [rbx], 2
je 0x18001019e
mov rcx, qword [0x180059270]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
test rbx, rbx
jne 0x18001027b
test r13, r13
je 0x1800101bd
lea r8, [rsp + 0x50]
mov dl, 0x20
mov rcx, r13
call fcn.180019dbc
mov ebp, eax
mov rcx, qword [0x180059270]
mov eax, ebp
xor edx, edx
imul eax, eax, 0x16
add eax, 0x45
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18001035a
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
lea rcx, [rbx + 6]
lea rdx, [0x180058768]
mov r8d, 0x10
mov byte [rbx], 2
call sub.ntdll.dll_memcpy
lea rdi, [rbx + 0x2f]
test ebp, ebp
je 0x180010277
mov rsi, qword [rsp + 0x50]
mov r13, qword [rsi]
lea rdx, [rsp + 0x70]
mov ecx, 0x201
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180010241
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, r13
call fcn.180019ca8
jmp 0x180010243
xor eax, eax
test eax, eax
je 0x18001026e
mov eax, dword [rsp + 0x54]
mov byte [rdi], 2
mov byte [rdi + 0x15], 1
mov dword [rdi + 1], eax
mov eax, 0x561d
add rdi, 0x16
mov word [rdi - 3], ax
mov eax, 0x7c24
inc r14d
mov word [rdi - 5], ax
add rsi, r12
sub rbp, 1
jne 0x180010218
mov byte [rbx + 0x2e], r14b
lea rdx, [rsp + 0x50]
mov r8d, 1
xor ecx, ecx
call fcn.180019610
test eax, eax
jne 0x1800102fe
lea edx, [rax + 2]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov rsi, qword [rsp + 0x50]
mov edi, eax
test eax, eax
je 0x1800102b3
cmp eax, 1
je 0x1800102b3
cmp eax, 0x80010106
jne 0x1800102ec
call qword [sym.imp.KERNEL32.dll_GetVersion]
lea rcx, [0x18005daa0]
cmp al, 5
jbe 0x1800102d5
lea rdx, [0x18005daa0]
mov r8, rsi
call fcn.1800224a0
jmp 0x1800102dd
mov rdx, rsi
call fcn.1800222c8
test edi, edi
je 0x1800102e6
cmp edi, 1
jne 0x1800102ec
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [0x180059270]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
mov rcx, qword [0x1800593a8]
lea rax, [0x18000f9d4]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call fcn.180021af8
mov r12d, eax
test eax, eax
jne 0x180010348
call fcn.18000fd98
mov rcx, qword [0x180059270]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x210]
mov eax, r12d
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret