Function at 0x14001c560
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 [0x1401ef010]
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.14013b330
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 0x14001c72b
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 0x14001c720
lea rdx, str.LANMANNT
lea rcx, [rbp - 0x40]
call fcn.140144f90
cmp dword [rbp + 0x440], r12d
je 0x14001c6a7
test eax, eax
jne 0x14001c686
or dword [rdi + 0x130], 4
jmp 0x14001c720
lea rdx, str.LANSECNT
lea rcx, [rbp - 0x40]
call fcn.140144f90
test eax, eax
jne 0x14001c720
or dword [rdi + 0x130], 8
jmp 0x14001c720
test eax, eax
jne 0x14001c6be
or dword [rdi + 0x130], 4
mov dword [rdi + 0x140], 3
jmp 0x14001c720
lea rdx, str.SERVERNT
lea rcx, [rbp - 0x40]
call fcn.140144f90
test eax, eax
jne 0x14001c6de
mov dword [rdi + 0x140], 2
jmp 0x14001c720
lea rdx, str.LANSECNT
lea rcx, [rbp - 0x40]
call fcn.140144f90
test eax, eax
jne 0x14001c705
or dword [rdi + 0x130], 8
mov dword [rdi + 0x140], 3
jmp 0x14001c720
lea rdx, str.WinNT
lea rcx, [rbp - 0x40]
call fcn.140144f90
test eax, eax
jne 0x14001c720
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 0x14001c7e2
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 0x14001c7d7
lea rcx, [rbp - 0x40]
call fcn.140144cb0
lea rdx, str.CORECONNECTED
lea rcx, [rbp - 0x40]
call fcn.140145188
test rax, rax
jne 0x14001c7cd
lea rdx, str.CONNECTEDCORE
lea rcx, [rbp - 0x40]
call fcn.140145188
test rax, rax
je 0x14001c7d7
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 0x14001c887
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 0x14001c891
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 0x14001c87a
cmp dword [rsp + 0x50], r12d
je 0x14001c87a
or dword [rdi + 0x130], 0x4000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001c891
or dword [rdi + 0x130], 0x4000
mov ecx, 0x56
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x14001c936
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 0x14001c940
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 0x14001c929
cmp dword [rsp + 0x50], r12d
je 0x14001c929
or dword [rdi + 0x130], 0x8000
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001c940
or dword [rdi + 0x130], 0x8000
mov ecx, 0x58
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14001c959
or dword [rdi + 0x130], 0x10000
mov ecx, 0x59
call qword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x14001c972
or dword [rdi + 0x130], 0x20000
mov ebx, dword [rbp + 0x438]
mov ecx, r12d
mov eax, ebx
sub eax, r13d
je 0x14001c99a
sub eax, r13d
je 0x14001c993
cmp eax, r13d
jne 0x14001c99f
mov ecx, 5
jmp 0x14001c99f
mov ecx, 4
jmp 0x14001c99f
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.14013b330
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.14001b670
cmp dword [rdi + 0x98], 4
jne 0x14001ca5f
cmp word [rdi + 0x12c], 6
jne 0x14001ca5f
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 0x14001ca5f
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 0x14001cb21
cmp dword [rdi + 0x9c], r12d
je 0x14001cb21
cmp word [rdi + 0x12c], r13w
jne 0x14001cb21
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 0x14001cb21
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 0x14001cb16
lea rdx, [0x1401c3644]
lea rcx, [rbp - 0x40]
call fcn.140144f90
test eax, eax
jne 0x14001cb16
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 0x14001cc19
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 0x14001cc0e
lea rdx, str.Uniprocessor_Free
lea rcx, [rbp - 0x40]
call fcn.140144f90
test eax, eax
jne 0x14001cbb0
or dword [rdi + 0x130], 0x400
jmp 0x14001cc0e
lea rdx, str.Uniprocessor_Checked
lea rcx, [rbp - 0x40]
call fcn.140144f90
test eax, eax
jne 0x14001cbd0
or dword [rdi + 0x130], 0x800
jmp 0x14001cc0e
lea rdx, str.Multiprocessor_Free
lea rcx, [rbp - 0x40]
call fcn.140144f90
test eax, eax
jne 0x14001cbf0
or dword [rdi + 0x130], 0x1000
jmp 0x14001cc0e
lea rdx, str.Multiprocessor_Checked
lea rcx, [rbp - 0x40]
call fcn.140144f90
test eax, eax
jne 0x14001cc0e
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 0x14001cc8d
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [0x1401c3678]
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 0x14001cd26
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 0x14001cd1b
lea rdx, str.ACor
lea rcx, [rbp - 0x40]
call fcn.140145188
test rax, rax
je 0x14001cd1b
mov dword [rdi + 0x14c], r13d
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14001cd5a
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 0x14001cdeb
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x58]
test rax, rax
je 0x14001cdc0
call rax
lea rcx, [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
jmp 0x14001cdcf
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbp - 0x78], xmm0
movzx ecx, word [rsp + 0x58]
call fcn.14001ad20
movzx ecx, word [rbp - 0x78]
mov dword [rdi + 0xa8], eax
call fcn.14001ad20
mov dword [rdi + 0x10], eax
lea rcx, str.NTDLL.DLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14001ce98
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14001ce98
xor edx, edx
lea rcx, [rbp - 0x3c]
mov r8d, 0x118
call fcn.140135010
lea rcx, [rbp - 0x40]
mov dword [rbp - 0x40], 0x11c
call rbx
test eax, eax
jne 0x14001ce98
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.14001d130
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 0x14001cf1e
lea rdx, str.RtlGetDeviceFamilyInfoEnum
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001cf1e
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 0x14001d019
cmp dword [rdi + 0x98], 6
jne 0x14001d019
cmp dword [rdi + 0x9c], 3
jne 0x14001d019
mov edx, 0x104
mov byte [rbp - 0x40], r12b
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x14001d019
lea r8, str.HAL.DLL
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14013b390
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 0x14001d019
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 0x14001d019
mov r9, rax
lea rcx, [rbp - 0x40]
mov r8d, esi
xor edx, edx
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x14001d005
lea r9, [rsp + 0x54]
mov dword [rsp + 0x54], r12d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], r12
lea rdx, [0x1401c3148]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x14001d005
mov rax, qword [rsp + 0x40]
cmp dword [rax + 0xc], 0x25804287
jb 0x14001d005
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.140132620
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