Function at 0x180066180
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov byte [rsp + 0x10], dl
mov byte [rsp + 8], cl
push rdi
sub rsp, 0x210
mov rax, qword [0x180161180]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov dword [rsp + 0x144], 0
mov dword [rsp + 0xb4], 0
mov dword [rsp + 0xb0], 0
mov dword [rsp + 0xb8], 4
mov dword [rsp + 0x130], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x140], 0
mov rax, qword [rsp + 0x230]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x1f8], 0xf
mov qword [rsp + 0x138], 0
mov qword [rsp + 0xc0], 0
mov qword [rsp + 0x1f0], 0
lea r8, [rsp + 0x1f0]
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x138]
call fcn.180089470
mov dword [rsp + 0xb4], eax
cmp dword [rsp + 0xb4], 0
je 0x180066282
mov r8d, dword [rsp + 0xb4]
mov edx, dword [rsp + 0xb4]
lea rcx, [0x1800025c0]
call fcn.1800892c0
xor eax, eax
jmp 0x180066620
call qword [rsp + 0x138]
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0xb0]
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 1
je 0x1800662f0
mov eax, dword [rsp + 0xb0]
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx edx, al
lea rcx, [0x180002550]
call fcn.1800892c0
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x180066620
lea rdi, [rsp + 0x150]
xor eax, eax
mov ecx, 0x94
rep stosb byte [rdi], al
mov dword [rsp + 0x150], 0x94
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x160], 2
jne 0x180066415
mov dword [rsp + 0x130], 0
jmp 0x180066346
mov eax, dword [rsp + 0x130]
add eax, 1
mov dword [rsp + 0x130], eax
mov eax, dword [rsp + 0xb0]
and rax, 0xffff
movzx eax, ax
and rax, 0xff
movzx eax, al
cmp dword [rsp + 0x130], eax
jae 0x18006639c
lea rdi, [rsp + 0x28]
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov byte [rsp + 0x28], 7
movzx eax, byte [rsp + 0x130]
mov byte [rsp + 0x2a], al
lea rcx, [rsp + 0x28]
call qword [rsp + 0xc0]
mov dword [rsp + 0xb8], eax
jmp 0x180066335
call qword [rsp + 0x138]
mov dword [rsp + 0xb0], eax
mov eax, dword [rsp + 0xb0]
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 1
je 0x18006640a
mov eax, dword [rsp + 0xb0]
and rax, 0xffff
movzx eax, ax
shr rax, 8
and rax, 0xff
movzx edx, al
lea rcx, [0x1800024e0]
call fcn.1800892c0
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x180066620
mov dword [rsp + 0x1f8], 0x3f
mov dword [rsp + 0x130], 0
jmp 0x180066433
mov eax, dword [rsp + 0x130]
add eax, 1
mov dword [rsp + 0x130], eax
mov eax, dword [rsp + 0xb0]
and rax, 0xffff
movzx eax, ax
and rax, 0xff
movzx eax, al
cmp dword [rsp + 0x130], eax
jae 0x18006660b
mov dword [rsp + 0x20], 0
jmp 0x18006646e
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x1f8]
cmp dword [rsp + 0x20], eax
jae 0x180066606
lea rdi, [rsp + 0x50]
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
lea rdi, [rsp + 0xd0]
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov byte [rsp + 0x50], 2
movzx eax, byte [rsp + 0x130]
mov byte [rsp + 0x52], al
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x58], al
mov byte [rsp + 0x59], 0
mov byte [rsp + 0x53], 8
mov byte [rsp + 0x69], 6
mov byte [rsp + 0x90], 0x12
mov byte [rsp + 0x94], 0x60
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x5c], 0x60
mov byte [rsp + 0x68], 0xe
lea rcx, [rsp + 0x50]
call qword [rsp + 0xc0]
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0xb8], 0
jne 0x18006655a
mov dword [rsp + 0x140], 0
jmp 0x18006652c
mov eax, dword [rsp + 0x140]
add eax, 1
mov dword [rsp + 0x140], eax
cmp dword [rsp + 0x140], 0xa
jge 0x18006654e
movzx eax, byte [rsp + 0x51]
test eax, eax
je 0x180066541
jmp 0x18006654e
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18006651b
movzx eax, byte [rsp + 0x51]
mov dword [rsp + 0xb8], eax
cmp dword [rsp + 0xb8], 1
je 0x180066569
jmp 0x180066601
movzx eax, byte [rsp + 0xd0]
and al, 0x1f
movzx ecx, al
movzx eax, byte [rsp + 0x220]
cmp ecx, eax
je 0x180066591
movzx eax, byte [rsp + 0x220]
cmp eax, 0xff
jne 0x180066601
mov eax, dword [rsp + 0x144]
add eax, 1
mov dword [rsp + 0x144], eax
mov byte [rsp + 0x30], 1
movzx eax, byte [rsp + 0x130]
mov byte [rsp + 0x31], al
mov byte [rsp + 0x32], 0
movzx eax, byte [rsp + 0x20]
mov byte [rsp + 0x33], al
mov byte [rsp + 0x34], 0
xor r9d, r9d
lea r8, [rsp + 0x30]
mov rdx, qword [rsp + 0x238]
mov ecx, 0xa
call qword [rsp + 0x38]
movzx eax, byte [rsp + 0x228]
cmp eax, 1
jne 0x180066601
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x180066620
jmp 0x180066463
jmp 0x180066422
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x144]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.1800eb430
add rsp, 0x210
pop rdi
ret