Function at 0x180010040
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 [0x180053010]
mov r13, qword [0x180052f70]
mov r12d, 8
xor eax, 0xedb88320
lea r9d, [r12 - 7]
lea rdx, [0x180057402]
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.1800197e8
test rax, rax
mov rdi, rax
je 0x1800100f6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [0x180052eb0]
xor edx, edx
add eax, 1
mov esi, eax
lea r8, [rax + rax + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x1800100e4
mov rcx, rdi
call fcn.180017788
lea rcx, [rbx + 8]
mov r8, rsi
mov rdx, rdi
call qword [sym.imp.ntdll.dll_mbstowcs]
mov rcx, qword [0x180052eb0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
mov qword [0x180052fe8], rbx
je 0x18001031d
and qword [rbx], rbp
lea r8, [rsp + 0x258]
lea rdx, [rsp + 0x50]
lea rcx, [0x1800571ef]
call fcn.180004c94
mov rbx, qword [rsp + 0x50]
test eax, eax
jne 0x180010167
mov r8d, dword [0x180053010]
mov edx, dword [rsp + 0x258]
xor r9d, r9d
mov rcx, rbx
call fcn.180041618
cmp dword [rsp + 0x258], 0x45
jb 0x180010153
cmp byte [rbx], 2
je 0x180010167
mov rcx, qword [0x180052eb0]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
test rbx, rbx
jne 0x18001023e
test r13, r13
je 0x180010186
lea r8, [rsp + 0x50]
mov dl, 0x20
mov rcx, r13
call fcn.180019d74
mov ebp, eax
mov rcx, qword [0x180052eb0]
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]
test rax, rax
mov rbx, rax
je 0x18001031d
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
lea rcx, [rbx + 6]
lea rdx, [0x180052578]
mov r8d, 0x10
mov byte [rbx], 2
call sub.ntdll.dll_memcpy
test ebp, ebp
lea rdi, [rbx + 0x2f]
je 0x18001023a
mov rsi, qword [rsp + 0x50]
mov r13, qword [rsi]
lea rdx, [rsp + 0x70]
mov cx, 0x201
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180010209
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov rcx, r13
call fcn.180019c64
jmp 0x18001020b
xor eax, eax
test eax, eax
je 0x180010231
mov eax, dword [rsp + 0x54]
mov byte [rdi], 2
mov byte [rdi + 0x15], 1
mov word [rdi + 0x13], 0xa78b
mov word [rdi + 0x11], 0x244d
mov dword [rdi + 1], eax
add rdi, 0x16
add r14d, 1
add rsi, r12
sub rbp, 1
jne 0x1800101e1
mov byte [rbx + 0x2e], r14b
lea rdx, [rsp + 0x50]
mov r8d, 1
xor ecx, ecx
call fcn.1800192cc
test eax, eax
jne 0x1800102c1
lea edx, [rax + 2]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov rsi, qword [rsp + 0x50]
test eax, eax
mov edi, eax
je 0x180010276
cmp eax, 1
je 0x180010276
cmp eax, 0x80010106
jne 0x1800102af
call qword [sym.imp.KERNEL32.dll_GetVersion]
lea rcx, [0x180057aa0]
cmp al, 5
jbe 0x180010298
lea rdx, [0x180057aa0]
mov r8, rsi
call fcn.180021f64
jmp 0x1800102a0
mov rdx, rsi
call fcn.180021d90
test edi, edi
je 0x1800102a9
cmp edi, 1
jne 0x1800102af
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, qword [0x180052eb0]
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 [0x180052fe8]
lea rax, [0x18000f9a0]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
call fcn.1800215c0
test eax, eax
mov r12d, eax
jne 0x18001030b
call fcn.18000fd60
mov rcx, qword [0x180052eb0]
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