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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x58]
sub rsp, 0x150
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x18005b0d0]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rcx
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_316]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_3697]
xor edx, edx
mov r8d, 0x9c
lea rcx, [rsp + 0x50]
call sub.MSVCR100.dll_memset
mov dword [rsp + 0x50], 0x9c
lea rcx, [rsp + 0x50]
call fcn.1800348d0
movzx edi, al
test al, al
jne 0x180034a48
mov dword [rsp + 0x50], 0x94
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x180034a48
lea rdx, [0x180041f02]
mov rcx, rbx
call qword [sym.imp.mfc100.dll_Ordinal_310]
nop
jmp 0x180034df3
cmp dword [rsp + 0x60], 2
jne 0x180034de4
cmp dword [rsp + 0x54], 4
ja 0x180034a6c
lea rdx, str.Microsoft_Windows_NT
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_1461]
cmp dword [rsp + 0x54], 5
jne 0x180034aad
mov eax, dword [rsp + 0x58]
test eax, eax
jne 0x180034a84
lea rdx, str.Microsoft_Windows_2000
jmp 0x180034aa2
cmp eax, 1
jne 0x180034a92
lea rdx, str.Microsoft_Windows_XP
jmp 0x180034aa2
cmp eax, 2
jne 0x180034bde
lea rdx, str.Microsoft_Windows_Server_2003
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_1461]
cmp dword [rsp + 0x54], 6
jne 0x180034bc5
mov eax, dword [rsp + 0x58]
cmp eax, 3
jne 0x180034af0
lea rcx, [rsp + 0x30]
cmp byte [rbp - 0x16], 1
jne 0x180034ade
lea rdx, str.Microsoft_Windows_8.1
call qword [sym.imp.mfc100.dll_Ordinal_1461]
jmp 0x180034bc5
lea rdx, str.Microsoft_Windows_Server_2012_R2
call qword [sym.imp.mfc100.dll_Ordinal_1461]
jmp 0x180034bc5
cmp eax, 2
jne 0x180034b24
lea rcx, [rsp + 0x30]
cmp byte [rbp - 0x16], 1
jne 0x180034b12
lea rdx, str.Microsoft_Windows_8
call qword [sym.imp.mfc100.dll_Ordinal_1461]
jmp 0x180034bc5
lea rdx, str.Microsoft_Windows_Server_2012
call qword [sym.imp.mfc100.dll_Ordinal_1461]
jmp 0x180034bc5
cmp eax, 1
jne 0x180034b54
lea rcx, [rsp + 0x30]
cmp byte [rbp - 0x16], al
jne 0x180034b45
lea rdx, str.Microsoft_Windows_7
call qword [sym.imp.mfc100.dll_Ordinal_1461]
jmp 0x180034bc5
lea rdx, str.Microsoft_Windows_Server_2008_R2
call qword [sym.imp.mfc100.dll_Ordinal_1461]
jmp 0x180034bc5
test eax, eax
jne 0x180034b81
lea rcx, [rsp + 0x30]
cmp byte [rbp - 0x16], 1
jne 0x180034b72
lea rdx, str.Microsoft_Windows_Vista
call qword [sym.imp.mfc100.dll_Ordinal_1461]
jmp 0x180034bc5
lea rdx, str.Microsoft_Windows_Server_2008
call qword [sym.imp.mfc100.dll_Ordinal_1461]
jmp 0x180034bc5
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc100.dll_Ordinal_316]
nop
mov r9d, dword [rsp + 0x58]
mov r8d, dword [rsp + 0x54]
lea rdx, str.Windows_version:__d._d
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc100.dll_Ordinal_4124]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_1457]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc100.dll_Ordinal_889]
cmp dword [rsp + 0x54], 0xa
jne 0x180034bde
lea rdx, str.Microsoft_Windows_10
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_1461]
test edi, edi
je 0x180034c7d
movzx eax, byte [rbp - 0x16]
cmp al, 1
jne 0x180034c16
mov eax, 0x200
lea rcx, [rsp + 0x30]
test word [rbp - 0x18], ax
je 0x180034c0a
lea rdx, str.Home_Edition
jmp 0x180034d49
lea rdx, str.Professional
jmp 0x180034d49
cmp al, 3
jne 0x180034d4f
movzx eax, byte [rbp - 0x18]
test al, al
jns 0x180034c32
lea rdx, str.DataCenter_Server
jmp 0x180034d44
lea rcx, [rsp + 0x30]
test al, 2
je 0x180034c5a
cmp dword [rsp + 0x54], 4
jne 0x180034c4e
lea rdx, str.Advanced_Server
jmp 0x180034d49
lea rdx, str.Enterprise_Server
jmp 0x180034d49
mov eax, 0x400
cmp word [rbp - 0x18], ax
jne 0x180034c71
lea rdx, str.Web_Server
jmp 0x180034d49
lea rdx, str.Server
jmp 0x180034d49
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlProductOptions
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea r11, [rsp + 0x38]
mov qword [rsp + 0x28], r11
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ProductType
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rbp - 0x10]
lea rcx, str.WINNT
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180034d01
lea rdx, str.Professional
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_1461]
lea rdx, [rbp - 0x10]
lea rcx, str.LANMANNT
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180034d28
lea rdx, str.Server
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_1461]
lea rdx, [rbp - 0x10]
lea rcx, str.SERVERNT
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180034d4f
lea rdx, str.Advanced_Server
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_1461]
lea rcx, [rsp + 0x38]
cmp dword [rsp + 0x54], 4
ja 0x180034da4
call qword [sym.imp.mfc100.dll_Ordinal_316]
nop
movzx eax, word [rsp + 0x5c]
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x58]
mov r8d, dword [rsp + 0x54]
lea rdx, str.version__d._d__s__Build__d_
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc100.dll_Ordinal_4124]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_1457]
nop
jmp 0x180034dd9
call qword [sym.imp.mfc100.dll_Ordinal_316]
nop
movzx r9d, word [rsp + 0x5c]
lea r8, [rsp + 0x64]
lea rdx, str._s__Build__d_
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc100.dll_Ordinal_4124]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_1457]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc100.dll_Ordinal_889]
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.mfc100.dll_Ordinal_300]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc100.dll_Ordinal_889]
mov rax, rbx
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.18003c580
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret