Function at 0x14001c6f0
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 [0x14021b0e0]
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.140150800
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 + 0x48]
mov qword [rsp + 0x48], r12
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea r13d, [r12 + 1]
test eax, eax
jne 0x14001c8bb
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
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 + 0x50], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001c8b0
lea rdx, str.LANMANNT
lea rcx, [rbp - 0x40]
call fcn.14015a460
cmp dword [rbp + 0x440], r12d
je 0x14001c837
test eax, eax
jne 0x14001c816
or dword [rdi + 0x130], 4
jmp 0x14001c8b0
lea rdx, str.LANSECNT
lea rcx, [rbp - 0x40]
call fcn.14015a460
test eax, eax
jne 0x14001c8b0
or dword [rdi + 0x130], 8
jmp 0x14001c8b0
test eax, eax
jne 0x14001c84e
or dword [rdi + 0x130], 4
mov dword [rdi + 0x140], 3
jmp 0x14001c8b0
lea rdx, str.SERVERNT
lea rcx, [rbp - 0x40]
call fcn.14015a460
test eax, eax
jne 0x14001c86e
mov dword [rdi + 0x140], 2
jmp 0x14001c8b0
lea rdx, str.LANSECNT
lea rcx, [rbp - 0x40]
call fcn.14015a460
test eax, eax
jne 0x14001c895
or dword [rdi + 0x130], 8
mov dword [rdi + 0x140], 3
jmp 0x14001c8b0
lea rdx, str.WinNT
lea rcx, [rbp - 0x40]
call fcn.14015a460
test eax, eax
jne 0x14001c8b0
mov dword [rdi + 0x140], r13d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x48], 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 0x14001c972
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
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 + 0x50], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001c967
lea rcx, [rbp - 0x40]
call fcn.14015a180
lea rdx, str.CORECONNECTED
lea rcx, [rbp - 0x40]
call fcn.14015a658
test rax, rax
jne 0x14001c95d
lea rdx, str.CONNECTEDCORE
lea rcx, [rbp - 0x40]
call fcn.14015a658
test rax, rax
je 0x14001c967
or dword [rdi + 0x134], 0x800000
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, 0x57
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x14001ca17
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], 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 0x14001ca21
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x48]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Installed
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x54], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001ca0a
cmp dword [rsp + 0x50], r12d
je 0x14001ca0a
or dword [rdi + 0x130], 0x4000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001ca21
or dword [rdi + 0x130], 0x4000
mov ecx, 0x56
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x14001cac6
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], 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 0x14001cad0
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Installed
mov dword [rsp + 0x54], r12d
mov dword [rsp + 0x48], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001cab9
cmp dword [rsp + 0x50], r12d
je 0x14001cab9
or dword [rdi + 0x130], 0x8000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001cad0
or dword [rdi + 0x130], 0x8000
mov ecx, 0x58
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14001cae9
or dword [rdi + 0x130], 0x10000
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14001cb02
or dword [rdi + 0x130], 0x20000
mov ebx, dword [rbp + 0x438]
mov ecx, r12d
mov eax, ebx
sub eax, r13d
je 0x14001cb2a
sub eax, r13d
je 0x14001cb23
cmp eax, r13d
jne 0x14001cb2f
mov ecx, 5
jmp 0x14001cb2f
mov ecx, 4
jmp 0x14001cb2f
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.140150800
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.14001b800
cmp dword [rdi + 0x98], 4
jne 0x14001cbef
cmp word [rdi + 0x12c], 6
jne 0x14001cbef
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], 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 0x14001cbef
mov rcx, qword [rsp + 0x40]
mov word [rdi + 0x12e], r13w
mov word [rdi + 0x96], r13w
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rdi + 0x98], 5
jne 0x14001ccb1
cmp dword [rdi + 0x9c], r12d
je 0x14001ccb1
cmp word [rdi + 0x12c], r13w
jne 0x14001ccb1
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], 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 0x14001ccb1
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
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 + 0x48], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001cca6
lea rdx, [0x1401ef9f4]
lea rcx, [rbp - 0x40]
call fcn.14015a460
test eax, eax
jne 0x14001cca6
mov word [rdi + 0x12e], r13w
mov word [rdi + 0x96], r13w
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], 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 0x14001cda9
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
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 + 0x48], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001cd9e
lea rdx, str.Uniprocessor_Free
lea rcx, [rbp - 0x40]
call fcn.14015a460
test eax, eax
jne 0x14001cd40
or dword [rdi + 0x130], 0x400
jmp 0x14001cd9e
lea rdx, str.Uniprocessor_Checked
lea rcx, [rbp - 0x40]
call fcn.14015a460
test eax, eax
jne 0x14001cd60
or dword [rdi + 0x130], 0x800
jmp 0x14001cd9e
lea rdx, str.Multiprocessor_Free
lea rcx, [rbp - 0x40]
call fcn.14015a460
test eax, eax
jne 0x14001cd80
or dword [rdi + 0x130], 0x1000
jmp 0x14001cd9e
lea rdx, str.Multiprocessor_Checked
lea rcx, [rbp - 0x40]
call fcn.14015a460
test eax, eax
jne 0x14001cd9e
or dword [rdi + 0x130], 0x2000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], r12
lea r15, [rdi + 0x144]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
mov dword [r15], r12d
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001ce1d
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [0x1401efa28]
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov dword [rsp + 0x48], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x40]
mov dword [rdi + 0x14c], r12d
mov r9d, 0x20119
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x40], r12
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14001ceb6
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
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 + 0x48], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001ceab
lea rdx, str.ACor
lea rcx, [rbp - 0x40]
call fcn.14015a658
test rax, rax
je 0x14001ceab
mov dword [rdi + 0x14c], r13d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14001ceea
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
xorps xmm0, xmm0
lea rcx, str.KERNEL32.DLL
mov eax, 0xffff
movups xmmword [rbp - 0x78], xmm0
mov word [rbp - 0x78], ax
movups xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x58], ax
movups xmmword [rbp - 0x68], xmm0
movups xmmword [rbp - 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001cf7b
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x58]
test rax, rax
je 0x14001cf50
call rax
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x14001cf5f
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbp - 0x78], xmm0
movzx ecx, word [rsp + 0x58]
call fcn.14001aeb0
movzx ecx, word [rbp - 0x78]
mov dword [rdi + 0xa8], eax
call fcn.14001aeb0
mov dword [rdi + 0x10], eax
lea rcx, str.NTDLL.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001d028
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14001d028
xor edx, edx
lea rcx, [rbp - 0x3c]
mov r8d, 0x118
call fcn.14014a5c0
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x40], 0x11c
call rbx
test eax, eax
jne 0x14001d028
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.14001d2c0
mov word [rdi + 0x12c], ax
mov word [rdi + 0x12e], r12w
lea rcx, str.NTDLL.DLL
mov qword [rdi + 0x150], r12
mov qword [rdi + 0x158], r12
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001d0ae
lea rdx, str.RtlGetDeviceFamilyInfoEnum
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001d0ae
lea r8, [rdi + 0x15c]
lea rdx, [rdi + 0x158]
lea rcx, [rdi + 0x150]
call rax
mov rcx, qword [rdi + 0x150]
mov rax, rcx
shr rax, 0x30
mov dword [rdi + 0x98], eax
mov rax, rcx
shr rax, 0x20
movzx eax, ax
mov dword [rdi + 0x9c], eax
mov rax, rcx
shr rax, 0x10
movzx eax, ax
mov dword [rdi + 0xa0], eax
movzx eax, cx
mov dword [r15], eax
cmp dword [rdi + 0xa4], 4
jne 0x14001d1a9
cmp dword [rdi + 0x98], 6
jne 0x14001d1a9
cmp dword [rdi + 0x9c], 3
jne 0x14001d1a9
mov edx, 0x104
mov byte [rbp - 0x40], r12b
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14001d1a9
lea r8, str.HAL.DLL
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.140150860
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], r12d
lea rcx, [rbp - 0x40]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test eax, eax
je 0x14001d1a9
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 0x14001d1a9
mov r9, rax
lea rcx, [rbp - 0x40]
mov r8d, esi
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x14001d195
lea r9, [rsp + 0x54]
mov dword [rsp + 0x54], r12d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], r12
lea rdx, [0x1401ef4f8]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x14001d195
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0xc], 0x25804287
jb 0x14001d195
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.140147af0
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