Function at 0x14000bb90
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
sub rsp, 0x390
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400267d0]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x40], rcx
mov qword [rcx + 0x28], SafeArrayLock
xor r12d, r12d
mov qword [rcx + 0x20], r12
mov byte [rcx + 0x10], r12b
mov qword [rcx + 0x8c70], r12
mov qword [rcx + 0x8c78], r12
mov qword [rcx + 0x8c80], r12
mov qword [rcx + 0x8c88], r12
lea rbp, [rcx + 0x2540]
mov qword [rbp], r12
mov byte [rcx + 0x1cc8], r12b
mov byte [rcx + 0x1cc9], r12b
mov byte [rcx + 0x1cca], r12b
mov byte [rcx + 0x1ccb], r12b
mov byte [rcx + 0x1ccc], r12b
mov byte [rcx + 0x1cd4], r12b
mov dword [rcx + 0x2518], r12d
mov dword [rcx + 0x251c], r12d
mov dword [rcx + 0x2548], r12d
mov dword [rcx + 0x1cb0], r12d
mov qword [rcx + 0x38], r12
mov r15d, 0x178
mov r8, r15
xor edx, edx
add rcx, 0x2550
call fcn.14000ce70
lea rcx, [rdi + 0x7970]
xor edx, edx
mov r8d, SysAllocStringByteLen
call fcn.14000ce70
cmp rbx, r12
je 0x14000bc8c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400284f8]
mov qword [rdi + 0x30], rax
mov qword [rsp + 0x20], rbp
lea r9, [0x14001d2a0]
xor edx, edx
lea r8d, [rdx + 0x15]
lea rcx, [0x14001d2e0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, r12d
jl 0x14000c456
cmp qword [rbp], r12
je 0x14000c456
mov r13d, 0x208
mov r8, r13
xor edx, edx
lea rcx, [rdi + 0x7a04]
call fcn.14000ce70
cmp qword [rdi + 0x28], 0x10
jb 0x14000bced
mov rcx, qword [rdi + 0x10]
jmp 0x14000bcf1
lea rcx, [rdi + 0x10]
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x20], rax
mov r14d, 0x104
mov r9d, r14d
lea r8, [rdi + 0x7a04]
mov edx, 0xbf0
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r13
xor edx, edx
lea rcx, [rdi + 0x7c0c]
call fcn.14000ce70
cmp qword [rdi + 0x28], 0x10
jb 0x14000bd32
mov rcx, qword [rdi + 0x10]
jmp 0x14000bd36
lea rcx, [rdi + 0x10]
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rdi + 0x7c0c]
mov edx, 0xc00
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r13
xor edx, edx
lea rcx, [rdi + 0x7e14]
call fcn.14000ce70
cmp qword [rdi + 0x28], 0x10
jb 0x14000bd71
mov rcx, qword [rdi + 0x10]
jmp 0x14000bd75
lea rcx, [rdi + 0x10]
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rdi + 0x7e14]
mov edx, 0xbff
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r13
xor edx, edx
lea rcx, [rdi + 0x801c]
call fcn.14000ce70
cmp qword [rdi + 0x28], 0x10
jb 0x14000bdb0
mov rcx, qword [rdi + 0x10]
jmp 0x14000bdb4
lea rcx, [rdi + 0x10]
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rdi + 0x801c]
mov edx, 0xc04
call sub.hccutils.DLL_LoadSTRINGW
lea rcx, [rdi + 0x1cd8]
xor edx, edx
mov r8d, 0x800
call fcn.14000ce70
mov r8, r13
xor edx, edx
lea rcx, [rdi + 0x8224]
call fcn.14000ce70
cmp qword [rdi + 0x28], 0x10
jb 0x14000be03
mov rcx, qword [rdi + 0x10]
jmp 0x14000be07
lea rcx, [rdi + 0x10]
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rdi + 0x8224]
mov edx, 0x1c16
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r13
xor edx, edx
lea rcx, [rdi + 0x842c]
call fcn.14000ce70
cmp qword [rdi + 0x28], 0x10
jb 0x14000be42
mov rcx, qword [rdi + 0x10]
jmp 0x14000be46
lea rcx, [rdi + 0x10]
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rdi + 0x842c]
mov edx, 0x1c17
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r13
xor edx, edx
lea rcx, [rdi + 0x8634]
call fcn.14000ce70
cmp qword [rdi + 0x28], 0x10
jb 0x14000be81
mov rcx, qword [rdi + 0x10]
jmp 0x14000be85
lea rcx, [rdi + 0x10]
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rdi + 0x8634]
mov edx, 0x11ec
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r13
xor edx, edx
lea rcx, [rdi + 0x883c]
call fcn.14000ce70
cmp qword [rdi + 0x28], 0x10
jb 0x14000bec0
mov rcx, qword [rdi + 0x10]
jmp 0x14000bec4
lea rcx, [rdi + 0x10]
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rdi + 0x883c]
mov edx, 0x11ed
call sub.hccutils.DLL_LoadSTRINGW
mov r8, r13
xor edx, edx
lea rcx, [rdi + 0x8a44]
call fcn.14000ce70
cmp qword [rdi + 0x28], 0x10
jb 0x14000beff
mov rcx, qword [rdi + 0x10]
jmp 0x14000bf03
lea rcx, [rdi + 0x10]
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, r14d
lea r8, [rdi + 0x8a44]
mov edx, 0x2532
call sub.hccutils.DLL_LoadSTRINGW
mov rcx, qword [rbp]
mov rax, qword [rcx]
lea rdx, [rdi + 0x7a00]
call qword [rax + 0x48]
mov rcx, qword [rbp]
mov rax, qword [rcx]
lea r8, [rdi + 0x2550]
mov edx, r15d
call qword [rax + 0x20]
mov ebx, eax
lea rdx, [rdi + 0x2550]
mov rcx, rdi
call fcn.140009c78
mov rcx, rdi
call fcn.14000b368
cmp ebx, r12d
jl 0x14000c456
mov rcx, qword [rbp]
mov rax, qword [rcx]
lea r8, [rdi + 0x26c8]
mov edx, 0x52a8
call qword [rax + 0x38]
cmp eax, r12d
jl 0x14000c456
mov r15d, VarR8FromUI1
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14000ce70
mov ebx, r12d
mov esi, r12d
lea r13d, [r15 - 0x47]
bt dword [rdi + 0x26e4], 8
jae 0x14000c024
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14000ce70
mov r14d, 0x100
mov dword [rsp + 0x68], r14d
mov rcx, qword [rbp]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov edx, r15d
call qword [rax + 0x70]
cmp dword [rsp + 0x74], r13d
jne 0x14000bfee
mov dword [rdi + 0x8ca0], r13d
mov esi, r14d
jmp 0x14000c008
cmp dword [rsp + 0x6c], r13d
jne 0x14000c001
mov dword [rdi + 0x8c90], r13d
mov ebx, r14d
jmp 0x14000c008
mov dword [rdi + 0x8c90], r12d
mov edx, dword [rdi + 0x8c90]
mov ecx, r14d
call fcn.1400011a4
mov edx, dword [rdi + 0x8ca0]
mov ecx, r14d
call fcn.1400011b4
bt dword [rdi + 0x26e4], 9
jae 0x14000c0a5
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14000ce70
mov r14d, 0x200
mov dword [rsp + 0x68], r14d
mov rcx, qword [rbp]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov edx, r15d
call qword [rax + 0x70]
cmp dword [rsp + 0x74], r13d
jne 0x14000c06e
mov dword [rdi + 0x8ca4], r13d
bts esi, 9
jmp 0x14000c089
cmp dword [rsp + 0x6c], r13d
jne 0x14000c082
mov dword [rdi + 0x8c94], r13d
bts ebx, 9
jmp 0x14000c089
mov dword [rdi + 0x8c94], r12d
mov edx, dword [rdi + 0x8c94]
mov ecx, r14d
call fcn.1400011a4
mov edx, dword [rdi + 0x8ca4]
mov ecx, r14d
call fcn.1400011b4
bt dword [rdi + 0x26e4], 0xa
jae 0x14000c126
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14000ce70
mov r14d, 0x400
mov dword [rsp + 0x68], r14d
mov rcx, qword [rbp]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov edx, r15d
call qword [rax + 0x70]
cmp dword [rsp + 0x74], r13d
jne 0x14000c0ef
mov dword [rdi + 0x8ca8], r13d
bts esi, 0xa
jmp 0x14000c10a
cmp dword [rsp + 0x6c], r13d
jne 0x14000c103
mov dword [rdi + 0x8c98], r13d
bts ebx, 0xa
jmp 0x14000c10a
mov dword [rdi + 0x8c98], r12d
mov edx, dword [rdi + 0x8c98]
mov ecx, r14d
call fcn.1400011a4
mov edx, dword [rdi + 0x8ca8]
mov ecx, r14d
call fcn.1400011b4
bt dword [rdi + 0x26e4], 0xb
jae 0x14000c1a8
mov r8, r15
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.14000ce70
mov dword [rsp + 0x68], 0x800
mov rcx, qword [rbp]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov edx, r15d
call qword [rax + 0x70]
cmp dword [rsp + 0x74], r13d
jne 0x14000c16d
mov dword [rdi + 0x8cac], r13d
bts esi, 0xb
jmp 0x14000c188
cmp dword [rsp + 0x6c], r13d
jne 0x14000c181
mov dword [rdi + 0x8c9c], r13d
bts ebx, 0xb
jmp 0x14000c188
mov dword [rdi + 0x8c9c], r12d
mov edx, dword [rdi + 0x8c9c]
mov ecx, 0x800
call fcn.1400011a4
mov edx, dword [rdi + 0x8cac]
mov ecx, 0x800
call fcn.1400011b4
cmp dword [rdi + 0x8c90], r12d
jne 0x14000c1d1
cmp dword [rdi + 0x8c94], r12d
jne 0x14000c1d1
cmp dword [rdi + 0x8c98], r12d
jne 0x14000c1d1
cmp dword [rdi + 0x8c9c], r12d
jne 0x14000c1d1
mov edx, r12d
jmp 0x14000c1d4
mov edx, r13d
mov ecx, ebx
call fcn.1400011a4
cmp dword [rdi + 0x8ca0], r12d
jne 0x14000c204
cmp dword [rdi + 0x8ca4], r12d
jne 0x14000c204
cmp dword [rdi + 0x8ca8], r12d
jne 0x14000c204
cmp dword [rdi + 0x8cac], r12d
jne 0x14000c204
mov edx, r12d
jmp 0x14000c207
mov edx, r13d
mov ecx, esi
call fcn.1400011b4
mov ecx, dword [rdi + 0x26e4]
and ecx, 0xf00
call fcn.1400011c4
mov r11, r12
cmp dword [rdi + 0x26e8], r12d
jbe 0x14000c296
lea rcx, [rdi + 0x26ec]
cmp dword [rcx], 2
je 0x14000c27d
cmp dword [rcx], 4
je 0x14000c274
cmp dword [rcx], 8
je 0x14000c26b
cmp dword [rcx], 0x10
je 0x14000c262
cmp dword [rcx], 0x20
je 0x14000c259
cmp dword [rcx], 0x40
jne 0x14000c284
mov byte [rdi + 0x1ccc], r13b
jmp 0x14000c284
mov byte [rdi + 0x1cd4], r13b
jmp 0x14000c284
mov byte [rdi + 0x1ccb], r13b
jmp 0x14000c284
mov byte [rdi + 0x1cc8], r13b
jmp 0x14000c284
mov byte [rdi + 0x1cca], r13b
jmp 0x14000c284
mov byte [rdi + 0x1cc9], r13b
add r11, r13
add rcx, 0x14
mov eax, dword [rdi + 0x26e8]
cmp r11, rax
jb 0x14000c232
mov ebx, 0x9c
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.14000ce70
mov dword [rsp + 0xa0], ebx
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, r12d
je 0x14000c456
cmp dword [rsp + 0xa8], r12d
jne 0x14000c2e1
mov dword [rdi + 0x1cd0], r13d
jmp 0x14000c456
mov dword [rdi + 0x1cd0], r13d
mov esi, 0x104
mov r8, rsi
xor edx, edx
lea rcx, [rsp + 0x270]
call fcn.14000ce70
mov qword [rsp + 0x38], r12
mov bl, r12b
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]
cmp eax, r12d
jne 0x14000c456
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x34], esi
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x270]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.EditionID
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, r12d
jne 0x14000c395
lea rdx, str.Starter
lea rcx, [rsp + 0x270]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
movzx ebx, bl
cmp rax, r12
cmovne ebx, r13d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp bl, r12b
je 0x14000c456
mov ebx, r12d
mov esi, r12d
mov ebp, r12d
mov qword [rsp + 0x70], SafeArrayLock
mov qword [rsp + 0x68], r12
mov byte [rsp + 0x58], r12b
lea rcx, str.Intel
call fcn.14000cc20
mov r8, rax
lea rdx, str.Intel
lea rcx, [rsp + 0x50]
call fcn.140001be8
mov dword [rsp + 0x140], 0x128
lea r8, [rsp + 0x140]
mov edx, ebp
xor ecx, ecx
call fcn.1400011cc
cmp eax, r12d
je 0x14000c437
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x164]
call fcn.14000de8c
cmp rax, r12
je 0x14000c42f
add ebx, r13d
add esi, r13d
add ebp, r13d
cmp esi, 0xa
jb 0x14000c3e5
cmp ebx, r13d
jne 0x14000c443
mov dword [rdi + 0x1cd0], r12d
cmp qword [rsp + 0x70], 0x10
jb 0x14000c456
mov rcx, qword [rsp + 0x58]
call fcn.14000c7e4
nop
mov rax, rdi
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.14000cff0
mov rbx, qword [rsp + 0x3e0]
add rsp, 0x390
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret