Function at 0x14001ca20
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2a8]
sub rsp, 0x370
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140059d90]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
lea rbx, [rcx + 0x10]
mov qword [rbx + 0x18], SafeArrayAccessData
xor r14d, r14d
mov qword [rbx + 0x10], r14
mov byte [rbx], r14b
mov qword [rcx + 0x322b0], r14
mov qword [rcx + 0x322b8], r14
mov qword [rcx + 0x322c0], r14
mov qword [rcx + 0x322c8], r14
lea r12, [rcx + 0x2750]
mov qword [r12], r14
mov word [rcx + 0x1ed8], r14w
mov byte [rcx + 0x1eda], r14b
mov word [rcx + 0x1edc], r14w
mov byte [rcx + 0x1ee4], r14b
mov qword [rcx + 0x2728], r14
mov dword [rcx + 0x2758], r14d
mov dword [rcx + 0x1ec0], r14d
mov qword [rcx + 0x40], r14
xor edx, edx
mov r8d, 0x1a8
add rcx, 0x2760
call fcn.1400213f0
lea rcx, [rdi + 0x30da8]
xor edx, edx
mov r8d, SysAllocStringByteLen
call fcn.1400213f0
mov byte [rdi + 0x1ee5], r14b
mov byte [rdi + 0x1edb], r14b
mov dword [rdi + 0x1ee0], r14d
mov qword [rdi + 8], r14
test rsi, rsi
je 0x14001cb28
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x14005c858]
mov qword [rdi + 0x38], rax
mov qword [rsp + 0x20], r12
lea r9, [0x140046d68]
xor edx, edx
lea r8d, [rdx + 0x15]
lea rcx, [0x140046da8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14001d441
cmp qword [r12], r14
je 0x14001d441
mov r15d, 0x208
mov r8d, r15d
xor edx, edx
lea rcx, [rdi + 0x30e3c]
call fcn.1400213f0
cmp qword [rbx + 0x18], 0x10
jb 0x14001cb87
mov rcx, qword [rbx]
jmp 0x14001cb8a
mov rcx, rbx
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x104
lea r8, [rdi + 0x30e3c]
mov edx, 0xbf0
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r15
xor edx, edx
lea rcx, [rdi + 0x31044]
call fcn.1400213f0
cmp qword [rbx + 0x18], 0x10
jb 0x14001cbc7
mov rcx, qword [rbx]
jmp 0x14001cbca
mov rcx, rbx
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x104
lea r8, [rdi + 0x31044]
mov edx, 0xc00
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r15
xor edx, edx
lea rcx, [rdi + 0x3124c]
call fcn.1400213f0
cmp qword [rbx + 0x18], 0x10
jb 0x14001cc07
mov rcx, qword [rbx]
jmp 0x14001cc0a
mov rcx, rbx
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x104
lea r8, [rdi + 0x3124c]
mov edx, 0xbff
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r15
xor edx, edx
lea rcx, [rdi + 0x31454]
call fcn.1400213f0
cmp qword [rbx + 0x18], 0x10
jb 0x14001cc47
mov rcx, qword [rbx]
jmp 0x14001cc4a
mov rcx, rbx
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x104
lea r8, [rdi + 0x31454]
mov edx, 0xc04
call sub.hccutils.DLL_LoadSTRINGW
lea rcx, [rdi + 0x1ee8]
xor edx, edx
mov r8d, 0x800
call fcn.1400213f0
mov r8, r15
xor edx, edx
lea rcx, [rdi + 0x3165c]
call fcn.1400213f0
cmp qword [rbx + 0x18], 0x10
jb 0x14001cc9b
mov rcx, qword [rbx]
jmp 0x14001cc9e
mov rcx, rbx
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x104
lea r8, [rdi + 0x3165c]
mov edx, 0x1c16
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r15
xor edx, edx
lea rcx, [rdi + 0x31864]
call fcn.1400213f0
cmp qword [rbx + 0x18], 0x10
jb 0x14001ccdb
mov rcx, qword [rbx]
jmp 0x14001ccde
mov rcx, rbx
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x104
lea r8, [rdi + 0x31864]
mov edx, 0x1c17
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r15
xor edx, edx
lea rcx, [rdi + 0x31a6c]
call fcn.1400213f0
cmp qword [rbx + 0x18], 0x10
jb 0x14001cd1b
mov rcx, qword [rbx]
jmp 0x14001cd1e
mov rcx, rbx
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x104
lea r8, [rdi + 0x31a6c]
mov edx, 0x11ec
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r15
xor edx, edx
lea rcx, [rdi + 0x31c74]
call fcn.1400213f0
cmp qword [rbx + 0x18], 0x10
jb 0x14001cd5b
mov rcx, qword [rbx]
jmp 0x14001cd5e
mov rcx, rbx
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x104
lea r8, [rdi + 0x31c74]
mov edx, 0x11ed
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r15
xor edx, edx
lea rcx, [rdi + 0x31e7c]
call fcn.1400213f0
cmp qword [rbx + 0x18], 0x10
jb 0x14001cd9b
mov rcx, qword [rbx]
jmp 0x14001cd9e
mov rcx, rbx
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x104
lea r8, [rdi + 0x31e7c]
mov edx, 0x2532
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r15
xor edx, edx
lea rcx, [rdi + 0x32084]
call fcn.1400213f0
cmp qword [rbx + 0x18], 0x10
jb 0x14001cdd9
mov rbx, qword [rbx]
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x20], rax
mov r15d, 0x104
mov r9d, r15d
lea r8, [rdi + 0x32084]
mov edx, 0x253c
mov rcx, rbx
call sub.hccutils.DLL_LoadSTRINGW
mov rcx, qword [r12]
mov rax, qword [rcx]
lea rdx, [rdi + 0x30e38]
call qword [rax + 0x48]
mov rcx, qword [r12]
mov rax, qword [rcx]
lea r8, [rdi + 0x2760]
mov edx, 0x1a8
call qword [rax + 0x20]
mov ebx, eax
lea rdx, [rdi + 0x2760]
mov rcx, rdi
call fcn.14000f644
mov rcx, rdi
call fcn.14001c1f8
test ebx, ebx
js 0x14001d441
mov rcx, qword [r12]
mov rax, qword [rcx]
lea r8, [rdi + 0x2908]
mov edx, 0x2e4a0
call qword [rax + 0x38]
test eax, eax
js 0x14001d441
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x30], r14d
lea r12d, [r15 - 4]
test dword [rdi + 0x2924], r12d
je 0x14001cea6
lea rax, [rdi + 0x322d0]
lea r9, [rdi + 0x32300]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e834
mov esi, 0x200
test dword [rdi + 0x2924], esi
je 0x14001cedc
lea rax, [rdi + 0x322d4]
lea r9, [rdi + 0x32304]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e834
mov ebx, 0x400
test dword [rdi + 0x2924], ebx
je 0x14001cf12
lea rax, [rdi + 0x322d8]
lea r9, [rdi + 0x32308]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e834
test dword [rdi + 0x2924], 0x800
je 0x14001cf4b
lea rax, [rdi + 0x322dc]
lea r9, [rdi + 0x3230c]
mov dword [rsp + 0x28], 0x800
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e834
mov ecx, 0x10000
test dword [rdi + 0x2924], ecx
je 0x14001cf81
lea rax, [rdi + 0x322e0]
lea r9, [rdi + 0x32310]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e834
mov ecx, 0x20000
test dword [rdi + 0x2924], ecx
je 0x14001cfb7
lea rax, [rdi + 0x322e4]
lea r9, [rdi + 0x32314]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e834
mov ecx, 0x40000
test dword [rdi + 0x2924], ecx
je 0x14001cfed
lea rax, [rdi + 0x322e8]
lea r9, [rdi + 0x32318]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e834
mov ecx, 0x80000
test dword [rdi + 0x2924], ecx
je 0x14001d023
lea rax, [rdi + 0x322ec]
lea r9, [rdi + 0x3231c]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e834
mov ecx, 0x100000
test dword [rdi + 0x2924], ecx
je 0x14001d059
lea rax, [rdi + 0x322f0]
lea r9, [rdi + 0x32320]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e834
mov ecx, 0x200000
test dword [rdi + 0x2924], ecx
je 0x14001d08f
lea rax, [rdi + 0x322f4]
lea r9, [rdi + 0x32324]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e834
mov ecx, 0x400000
test dword [rdi + 0x2924], ecx
je 0x14001d0c5
lea rax, [rdi + 0x322f8]
lea r9, [rdi + 0x32328]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e834
mov ecx, 0x800000
test dword [rdi + 0x2924], ecx
je 0x14001d0fb
lea rax, [rdi + 0x322fc]
lea r9, [rdi + 0x3232c]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000e834
mov r13d, 1
cmp dword [rdi + 0x322d0], r14d
jne 0x14001d170
cmp dword [rdi + 0x322d4], r14d
jne 0x14001d170
cmp dword [rdi + 0x322d8], r14d
jne 0x14001d170
cmp dword [rdi + 0x322dc], r14d
jne 0x14001d170
cmp dword [rdi + 0x322e0], r14d
jne 0x14001d170
cmp dword [rdi + 0x322e4], r14d
jne 0x14001d170
cmp dword [rdi + 0x322e8], r14d
jne 0x14001d170
cmp dword [rdi + 0x322ec], r14d
jne 0x14001d170
cmp dword [rdi + 0x322f0], r14d
jne 0x14001d170
cmp dword [rdi + 0x322f4], r14d
jne 0x14001d170
cmp dword [rdi + 0x322f8], r14d
jne 0x14001d170
cmp dword [rdi + 0x322fc], r14d
mov edx, r14d
je 0x14001d173
mov edx, r13d
mov ecx, dword [rsp + 0x34]
call fcn.140001330
cmp dword [rdi + 0x32300], r14d
jne 0x14001d1eb
cmp dword [rdi + 0x32304], r14d
jne 0x14001d1eb
cmp dword [rdi + 0x32308], r14d
jne 0x14001d1eb
cmp dword [rdi + 0x3230c], r14d
jne 0x14001d1eb
cmp dword [rdi + 0x32310], r14d
jne 0x14001d1eb
cmp dword [rdi + 0x32314], r14d
jne 0x14001d1eb
cmp dword [rdi + 0x32318], r14d
jne 0x14001d1eb
cmp dword [rdi + 0x3231c], r14d
jne 0x14001d1eb
cmp dword [rdi + 0x32320], r14d
jne 0x14001d1eb
cmp dword [rdi + 0x32324], r14d
jne 0x14001d1eb
cmp dword [rdi + 0x32328], r14d
jne 0x14001d1eb
cmp dword [rdi + 0x3232c], r14d
mov edx, r14d
je 0x14001d1ee
mov edx, r13d
mov ecx, dword [rsp + 0x30]
call fcn.140001340
mov ecx, dword [rdi + 0x2924]
and ecx, 0xff0f00
call fcn.140001350
mov r11, r14
cmp dword [rdi + 0x2928], r14d
jbe 0x14001d2b0
lea rcx, [rdi + 0x292c]
cmp dword [rcx], 0x40
ja 0x14001d275
je 0x14001d26c
cmp dword [rcx], 2
je 0x14001d263
cmp dword [rcx], 4
je 0x14001d25a
cmp dword [rcx], 8
je 0x14001d251
cmp dword [rcx], 0x10
je 0x14001d248
cmp dword [rcx], 0x20
jne 0x14001d29a
mov byte [rdi + 0x1ee4], r13b
jmp 0x14001d29a
mov byte [rdi + 0x1edc], r13b
jmp 0x14001d29a
mov byte [rdi + 0x1ed8], r13b
jmp 0x14001d29a
mov byte [rdi + 0x1eda], r13b
jmp 0x14001d29a
mov byte [rdi + 0x1ed9], r13b
jmp 0x14001d29a
mov byte [rdi + 0x1edd], r13b
jmp 0x14001d29a
cmp dword [rcx], r12d
je 0x14001d293
cmp dword [rcx], esi
je 0x14001d293
cmp dword [rcx], ebx
je 0x14001d28a
cmp dword [rcx], 0x800
jne 0x14001d29a
mov byte [rdi + 0x1ee5], r13b
jmp 0x14001d29a
mov byte [rdi + 0x1edb], r13b
add r11, r13
add rcx, 0x14
mov eax, dword [rdi + 0x2928]
cmp r11, rax
jb 0x14001d21f
mov ebx, 0x9c
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.1400213f0
mov dword [rbp - 0x80], ebx
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14001d441
mov dword [rdi + 0x1ee0], r13d
cmp dword [rbp - 0x78], r14d
je 0x14001d441
mov r8, r15
xor edx, edx
lea rcx, [rbp + 0x150]
call fcn.1400213f0
mov qword [rsp + 0x38], r14
mov bl, r14b
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMICROSOFTWINDOWS_NTCURRENTVERSION
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001d441
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x30], r15d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x150]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.EditionID
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001d38d
lea rdx, str.Starter
lea rcx, [rbp + 0x150]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
movzx ebx, bl
test rax, rax
cmovne ebx, r13d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x14001d441
mov ebx, r14d
mov esi, r14d
mov r12d, r14d
mov qword [rsp + 0x68], SafeArrayAccessData
mov qword [rsp + 0x60], r14
mov byte [rsp + 0x50], r14b
lea rcx, str.Intel
call fcn.140020e10
mov r8, rax
lea rdx, str.Intel
lea rcx, [rsp + 0x50]
call fcn.1400033ac
mov dword [rbp + 0x20], 0x128
lea r8, [rbp + 0x20]
mov edx, r12d
xor ecx, ecx
call fcn.14000192c
test eax, eax
je 0x14001d422
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
lea rcx, [rbp + 0x44]
call fcn.1400229ec
test rax, rax
je 0x14001d41a
add ebx, r13d
add esi, r13d
add r12d, r13d
cmp esi, 0xa
jb 0x14001d3dc
cmp ebx, r13d
jne 0x14001d42e
mov dword [rdi + 0x1ee0], r14d
cmp qword [rsp + 0x68], 0x10
jb 0x14001d441
mov rcx, qword [rsp + 0x50]
call fcn.140020508
nop
mov rax, rdi
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.140021570
mov rbx, qword [rsp + 0x3c0]
add rsp, 0x370
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret