Function at 0x180065710
Capabilities:
Check os version

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1518
call fcn.1801339d0
sub rsp, rax
mov rax, qword [0x180161180]
xor rax, rsp
mov qword [rsp + 0x1500], rax
xor eax, eax
mov word [rsp + 0x14f8], ax
mov dword [rsp + 0x1040], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x1044], 0
mov qword [rsp + 0x14f0], 0
movzx eax, byte [0x180163d40]
cmp eax, 1
jne 0x18006578a
xor eax, eax
jmp 0x180065a82
mov eax, dword [rsp + 0x1538]
cmp rax, 0x400
jae 0x1800657af
lea rcx, [0x180001ee0]
call fcn.1800892c0
mov eax, 2
jmp 0x180065a82
lea rdi, [rsp + 0x40]
xor eax, eax
mov ecx, 0x1000
rep stosb byte [rdi], al
mov r9d, 0x20100110
lea r8, [0x180001ec8]
lea rdx, [0x180001e88]
lea rcx, [rsp + 0x40]
call fcn.1800eb79c
lea rdi, [rsp + 0x40]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
sub rdi, 1
lea rsi, [0x180001e40]
mov ecx, 0x48
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x40]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
sub rdi, 1
lea rsi, [0x180001df0]
mov ecx, 0x42
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x40]
lea rcx, [0x180001de4]
call fcn.180065af0
mov r8d, 0x400
mov rdx, qword [rsp + 0x1530]
lea rcx, [rsp + 0x1050]
call fcn.1800eb460
lea rdx, [rsp + 0x1052]
mov qword [rsp + 0x20], rdx
mov dword [rsp + 0x1044], 0
jmp 0x180065876
mov eax, dword [rsp + 0x1044]
add eax, 1
mov dword [rsp + 0x1044], eax
movsxd rax, dword [rsp + 0x1044]
cmp rax, 0x1ff
jae 0x1800658b4
movsxd rdx, dword [rsp + 0x1044]
movzx ecx, word [rsp + 0x1050]
mov rax, qword [rsp + 0x20]
movzx edx, word [rax + rdx*2]
xor edx, ecx
movsxd rcx, dword [rsp + 0x1044]
mov rax, qword [rsp + 0x20]
mov word [rax + rcx*2], dx
jmp 0x180065865
mov edx, 0x3fe
lea rcx, [rsp + 0x1052]
call fcn.180065b90
mov word [rsp + 0x14f8], ax
movzx ecx, word [rsp + 0x14f8]
movzx eax, word [rsp + 0x1050]
cmp ecx, eax
je 0x1800658f3
lea rcx, [0x180001d90]
call fcn.180065c20
jmp 0x1800659f7
cmp dword [rsp + 0x144c], 0x20100110
je 0x180065922
lea rcx, [0x180001d00]
call fcn.180065af0
lea rcx, [0x180001c80]
call fcn.180065c20
mov eax, 0x15
jmp 0x180065a82
movzx eax, word [rsp + 0x1052]
mov dword [rsp + 0x14fc], eax
cmp dword [rsp + 0x14fc], 0xf
ja case.default.0x180065954
movsxd rax, dword [rsp + 0x14fc]
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x65a9c]
add rax, rcx
jmp rax
lea rcx, [0x180001c00]
call fcn.180065af0
lea rcx, [0x180001b90]
call fcn.180065c20
jmp 0x1800659c8
lea rcx, [0x180001b30]
call fcn.180065af0
lea rcx, [0x180001ad0]
call fcn.180065c20
jmp 0x1800659c8
lea rcx, [0x180001a80]
call fcn.180065af0
jmp 0x1800659c8
lea rcx, [0x180001a20]
call fcn.180065af0
jmp 0x1800659c8
lea rcx, [0x1800019c0]
call fcn.180065af0
jmp 0x1800659c8
movzx edx, word [rsp + 0x1052]
lea rcx, [0x180001950]
call fcn.180065af0
lea r9, [rsp + 0x1358]
lea r8, [rsp + 0x1058]
mov edx, dword [rsp + 0x1054]
lea rcx, [0x180001918]
call fcn.180065af0
lea rcx, [0x1800018b0]
call fcn.180065af0
mov dword [rsp + 0x1450], 0x94
lea rcx, [rsp + 0x1450]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x1454], 5
jae 0x180065a35
mov r8d, dword [rsp + 0x1458]
mov edx, dword [rsp + 0x1454]
lea rcx, [0x180001868]
call fcn.180065af0
call fcn.180127360
call fcn.180089b30
mov dword [rsp + 0x1040], eax
cmp dword [rsp + 0x1040], 0
je 0x180065a6b
mov r8d, dword [rsp + 0x1040]
mov edx, dword [rsp + 0x1040]
lea rcx, [0x180001800]
call fcn.180065af0
mov byte [0x180163d40], 1
movzx eax, word [rsp + 0x1052]
mov dword [0x18015e750], eax
xor eax, eax
mov rcx, qword [rsp + 0x1500]
xor rcx, rsp
call fcn.1800eb430
add rsp, 0x1518
pop rdi
pop rsi
ret