Function at 0x14001c280
Capabilities:
Get common file path
Get file version info
Get system information on windows
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rdi, qword [rbp + 0x448]
mov eax, r8d
mov r8, qword [rbp + 0x420]
mov r15, rcx
mov dword [rdi + 4], eax
lea rcx, [rdi + 0x14]
movzx eax, r9w
mov dword [rdi], edx
mov edx, 0x80
mov dword [rdi + 8], eax
call fcn.14013ac00
movzx eax, word [rbp + 0x428]
lea rdx, str.SystemCurrentControlSetControlProductOptions
mov word [rdi + 0x94], ax
xor r12d, r12d
movzx eax, word [rbp + 0x430]
mov r9d, 0x20119
mov word [rdi + 0x96], ax
xor r8d, r8d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x58], r12
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea r13d, [r12 + 1]
test eax, eax
jne 0x14001c44b
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.ProductType
lea rax, [rbp - 0x40]
mov byte [rbp - 0x40], r12b
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001c440
lea rdx, str.LANMANNT
lea rcx, [rbp - 0x40]
call fcn.140144860
cmp dword [rbp + 0x440], r12d
je 0x14001c3c7
test eax, eax
jne 0x14001c3a6
or dword [rdi + 0x130], 4
jmp 0x14001c440
lea rdx, str.LANSECNT
lea rcx, [rbp - 0x40]
call fcn.140144860
test eax, eax
jne 0x14001c440
or dword [rdi + 0x130], 8
jmp 0x14001c440
test eax, eax
jne 0x14001c3de
or dword [rdi + 0x130], 4
mov dword [rdi + 0x13c], 3
jmp 0x14001c440
lea rdx, str.SERVERNT
lea rcx, [rbp - 0x40]
call fcn.140144860
test eax, eax
jne 0x14001c3fe
mov dword [rdi + 0x13c], 2
jmp 0x14001c440
lea rdx, str.LANSECNT
lea rcx, [rbp - 0x40]
call fcn.140144860
test eax, eax
jne 0x14001c425
or dword [rdi + 0x130], 8
mov dword [rdi + 0x13c], 3
jmp 0x14001c440
lea rdx, str.WinNT
lea rcx, [rbp - 0x40]
call fcn.140144860
test eax, eax
jne 0x14001c440
mov dword [rdi + 0x13c], r13d
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x58], r12
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001c502
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, str.EditionID
lea rax, [rbp - 0x40]
mov byte [rbp - 0x40], r12b
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001c4f7
lea rcx, [rbp - 0x40]
call fcn.140144580
lea rdx, str.CORECONNECTED
lea rcx, [rbp - 0x40]
call fcn.140149fd8
test rax, rax
jne 0x14001c4ed
lea rdx, str.CONNECTEDCORE
lea rcx, [rbp - 0x40]
call fcn.140149fd8
test rax, rax
je 0x14001c4f7
or dword [rdi + 0x134], 0x800000
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x57
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x14001c5a2
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r12
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemWPAMediaCenter
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001c5ac
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Installed
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001c595
cmp dword [rsp + 0x40], r12d
je 0x14001c595
or dword [rdi + 0x130], 0x4000
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001c5ac
or dword [rdi + 0x130], 0x4000
mov ecx, 0x56
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x14001c64c
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r12
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemWPATabletPC
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001c656
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Installed
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001c63f
cmp dword [rsp + 0x40], r12d
je 0x14001c63f
or dword [rdi + 0x130], 0x8000
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001c656
or dword [rdi + 0x130], 0x8000
mov ecx, 0x58
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14001c66f
or dword [rdi + 0x130], 0x10000
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14001c688
or dword [rdi + 0x130], 0x20000
mov ebx, dword [rbp + 0x438]
mov ecx, r12d
mov eax, ebx
sub eax, r13d
je 0x14001c6b0
sub eax, r13d
je 0x14001c6a9
cmp eax, r13d
jne 0x14001c6b5
mov ecx, 5
jmp 0x14001c6b5
mov ecx, 4
jmp 0x14001c6b5
mov ecx, 3
mov eax, dword [rdi]
lea rsi, [rdi + 0xac]
mov dword [rdi + 0x98], eax
lea r8, [rdi + 0x14]
mov eax, dword [rdi + 4]
mov edx, 0x80
mov dword [rdi + 0x9c], eax
mov eax, dword [rdi + 8]
mov dword [rdi + 0xc], ecx
mov dword [rdi + 0xa4], ecx
mov rcx, rsi
mov dword [rdi + 0xa0], eax
call fcn.14013ac00
movzx eax, word [rdi + 0x94]
mov rdx, rdi
mov word [rdi + 0x12c], ax
mov rcx, r15
movzx eax, word [rdi + 0x96]
mov word [rdi + 0x12e], ax
call fcn.14001b850
cmp dword [rdi + 0x98], 4
jne 0x14001c775
cmp word [rdi + 0x12c], 6
jne 0x14001c775
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r12
mov r9d, 0x101
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001c775
mov rcx, qword [rsp + 0x48]
mov word [rdi + 0x12e], r13w
mov word [rdi + 0x96], r13w
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rdi + 0x98], 5
jne 0x14001c837
cmp dword [rdi + 0x9c], r12d
je 0x14001c837
cmp word [rdi + 0x12c], r13w
jne 0x14001c837
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r12
mov r9d, 0x101
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001c837
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.SubVersionNumber
lea rax, [rbp - 0x40]
mov byte [rbp - 0x40], r12b
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001c82c
lea rdx, [0x1401c3f04]
lea rcx, [rbp - 0x40]
call fcn.140144860
test eax, eax
jne 0x14001c82c
mov word [rdi + 0x12e], r13w
mov word [rdi + 0x96], r13w
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], r12
mov r9d, 0x101
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001c92f
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.CurrentType
lea rax, [rbp - 0x40]
mov byte [rbp - 0x40], r12b
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001c924
lea rdx, str.Uniprocessor_Free
lea rcx, [rbp - 0x40]
call fcn.140144860
test eax, eax
jne 0x14001c8c6
or dword [rdi + 0x130], 0x400
jmp 0x14001c924
lea rdx, str.Uniprocessor_Checked
lea rcx, [rbp - 0x40]
call fcn.140144860
test eax, eax
jne 0x14001c8e6
or dword [rdi + 0x130], 0x800
jmp 0x14001c924
lea rdx, str.Multiprocessor_Free
lea rcx, [rbp - 0x40]
call fcn.140144860
test eax, eax
jne 0x14001c906
or dword [rdi + 0x130], 0x1000
jmp 0x14001c924
lea rdx, str.Multiprocessor_Checked
lea rcx, [rbp - 0x40]
call fcn.140144860
test eax, eax
jne 0x14001c924
or dword [rdi + 0x130], 0x2000
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14001c963
or dword [rdi + 0x134], 0x200000
mov dword [rdi + 0xc], 4
mov dword [rdi + 0x98], 3
mov qword [rdi + 0x9c], 0xa
mov dword [rdi + 0xa4], 2
mov eax, 0xffff
lea rcx, str.KERNEL32.DLL
mov word [rbp - 0x70], ax
mov word [rsp + 0x60], ax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001c9d6
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x60]
test rax, rax
je 0x14001c9ab
call rax
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x14001c9ba
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbp - 0x70], xmm0
movzx ecx, word [rsp + 0x60]
call fcn.14001b000
movzx ecx, word [rbp - 0x70]
mov dword [rdi + 0xa8], eax
call fcn.14001b000
mov dword [rdi + 0x10], eax
lea rcx, str.NTDLL.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001ca6f
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001ca6f
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x40], 0x11c
call rax
test eax, eax
jne 0x14001ca6f
mov eax, dword [rbp - 0x34]
lea r8, [rbp - 0x2c]
mov dword [rdi + 0xa0], eax
mov r9d, 0xffffffff
mov eax, dword [rbp - 0x3c]
xor edx, edx
mov qword [rsp + 0x38], r12
xor ecx, ecx
mov dword [rdi + 0x98], eax
mov eax, dword [rbp - 0x38]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rdi + 0x9c], eax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rsi
call fcn.14001cba0
mov word [rdi + 0x12c], ax
mov word [rdi + 0x12e], r12w
cmp dword [rdi + 0xa4], 4
jne 0x14001cb6a
cmp dword [rdi + 0x98], 6
jne 0x14001cb6a
cmp dword [rdi + 0x9c], 3
jne 0x14001cb6a
mov edx, 0x104
mov byte [rbp - 0x40], r12b
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14001cb6a
lea r8, str.HAL.DLL
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14013ac60
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], r12d
lea rcx, [rbp - 0x40]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test eax, eax
je 0x14001cb6a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, esi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x14001cb6a
mov r9, rax
lea rcx, [rbp - 0x40]
mov r8d, esi
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x14001cb56
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], r12d
lea r8, [rsp + 0x48]
mov qword [rsp + 0x48], r12
lea rdx, [0x1401c3a08]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x14001cb56
mov rax, qword [rsp + 0x48]
cmp dword [rax + 0xc], 0x25804287
jb 0x14001cb56
or dword [rdi + 0x134], 0x400000
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140131ef0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret