Function at 0x140043444
Capabilities:
Check os version
Get common file path
Get memory capacity
Identify system language via api
Query or enumerate registry value

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x550
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401620b0]
xor rax, rsp
mov qword [rsp + 0x540], rax
mov rsi, rcx
mov qword [rsp + 0x50], rcx
call fcn.14008d174
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.Enter_updtShimAPIClass::DetectOSInfo
mov edx, 3
mov rax, qword [rax + 0x38]
call qword [case.0x14007ca24.0]
call fcn.140093d40
or r8, 0xffffffffffffffff
xor edi, edi
inc r8
cmp word [rax + r8*2], di
jne 0x1400434af
lea rcx, [rsi + 0xb8]
mov rdx, rax
call fcn.140005dd4
call fcn.1400939d0
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x1400434d1
lea rcx, [rsi + 0xf8]
mov rdx, rax
call fcn.140005dd4
lea rcx, [rsp + 0x150]
call fcn.1400465f4
nop
lea r8, str.SELECT_Caption_FROM_Win32_OperatingSystem
lea rdx, str.ROOTCIMV2
lea rcx, [rsp + 0x150]
call fcn.140046748
mov bl, al
test al, al
jne 0x140043536
call fcn.14008d174
mov rcx, qword [rax]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x38]
lea r8, str.Failed_to_initialize_WMIHelper_in_GetOSString
mov edx, 1
jmp 0x140043579
lea r8, [rsi + 0xd8]
lea r9, [0x14011dd90]
lea rdx, str.Caption
lea rcx, [rsp + 0x150]
call fcn.140046df8
mov bl, al
test al, al
jne 0x14004357f
call fcn.14008d174
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.OS:_caption_Failed
mov edx, 2
mov rax, qword [rax + 0x38]
call qword [case.0x14007ca24.0]
lea rcx, [rsp + 0x150]
call fcn.1400466c0
nop
lea rcx, [rsp + 0x150]
call fcn.140046684
test bl, bl
jne 0x14004360f
call fcn.14008d174
mov r9d, 1
mov r8, qword [rax]
lea edx, [r9 + 1]
lea rcx, [rsp + 0x330]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetOSString_failed:
mov rcx, rbx
call fcn.1400098d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14003fde0
nop
lea rcx, [rsp + 0x3d8]
call fcn.140004938
nop
lea r14, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + 0x3d8], r14
lea rcx, [rsp + 0x3d8]
call fcn.140002658
nop
jmp 0x140043616
lea r14, vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov ebx, 0x114
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x1b0]
call fcn.1400b6460
mov dword [rsp + 0x1b0], ebx
lea rcx, [rsp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400436b8
call fcn.14008d174
mov r9d, 1
mov r8, qword [rax]
lea edx, [r9 + 1]
lea rcx, [rsp + 0x330]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetVersionEx_failed:
mov rcx, rbx
call fcn.1400098d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14003fde0
nop
lea rcx, [rsp + 0x3d8]
call fcn.140004938
nop
mov qword [rsp + 0x3d8], r14
lea rcx, [rsp + 0x3d8]
call fcn.140002658
nop
mov eax, 2
jmp 0x140044198
mov eax, dword [rsp + 0x1b4]
mov dword [rsi + 0x138], eax
mov eax, dword [rsp + 0x1b8]
mov dword [rsi + 0x13c], eax
mov eax, dword [rsp + 0x1bc]
mov dword [rsi + 0x140], eax
mov eax, dword [rsp + 0x1c0]
mov dword [rsi + 0x144], eax
lea rax, [rsp + 0x1c4]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x1400436f8
lea rcx, [rsi + 0x170]
lea rdx, [rsp + 0x1c4]
call fcn.140005dd4
mov ecx, 0x4e
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsi + 0x225c], eax
mov ecx, 0x4f
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsi + 0x2260], eax
lea rdx, [rsi + 0x2228]
call fcn.140043074
test al, al
jne 0x1400437b0
call fcn.14008d174
mov r9d, 1
mov r8, qword [rax]
lea edx, [r9 + 1]
lea rcx, [rsp + 0x330]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.GetSHIMLink_failed
mov rcx, rbx
call fcn.1400098d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14003fde0
nop
lea rcx, [rsp + 0x3d8]
call fcn.140004938
nop
mov qword [rsp + 0x3d8], r14
lea rcx, [rsp + 0x3d8]
call fcn.140002658
nop
cmp dword [rsi + 0x138], 5
ja 0x1400437cc
jne 0x140043859
cmp dword [rsi + 0x13c], 1
jb 0x140043859
mov ebx, 0x11c
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x330]
call fcn.1400b6460
mov dword [rsp + 0x330], ebx
lea rcx, [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14004381f
call fcn.14008d174
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.GetVersionEx_Failed
mov edx, 1
mov rax, qword [rax + 0x38]
call qword [case.0x14007ca24.0]
jmp 0x140043859
movzx eax, word [rsp + 0x444]
mov word [rsi + 0x148], ax
movzx eax, word [rsp + 0x446]
mov word [rsi + 0x14a], ax
movzx eax, word [rsp + 0x448]
mov word [rsi + 0x14c], ax
mov al, byte [rsp + 0x44a]
mov byte [rsi + 0x14e], al
mov ebx, 0x40
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x110]
call fcn.1400b6460
mov dword [rsp + 0x110], ebx
lea rcx, [rsp + 0x110]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x1400438ee
call fcn.14008d174
lea r9d, [rbx - 0x3f]
mov r8, qword [rax]
mov edx, r9d
lea rcx, [rsp + 0x330]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.GlobalMemoryStatusEx_Failed_ec
mov rcx, rbx
call fcn.1400098d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call fcn.14003fde0
nop
lea rcx, [rsp + 0x3d8]
call fcn.140004938
nop
mov qword [rsp + 0x3d8], r14
lea rcx, [rsp + 0x3d8]
call fcn.140002658
nop
mov rax, qword [rsp + 0x118]
shr rax, 0xa
mov qword [rsi + 0x150], rax
mov rax, qword [rsp + 0x120]
shr rax, 0xa
mov qword [rsi + 0x158], rax
mov rax, qword [rsp + 0x138]
shr rax, 0xa
mov qword [rsi + 0x160], rax
mov rax, qword [rsp + 0x140]
shr rax, 0xa
mov qword [rsi + 0x168], rax
mov dword [rsp + 0x40], edi
lea rdx, str.NotifiusUILanguage
lea rcx, [rsp + 0xf0]
call fcn.140009898
nop
lea rdx, str.HKLMSOFTWARENVIDIA_CorporationGlobalNVUpdatus
lea rcx, [rsp + 0xd0]
call fcn.140009898
nop
mov r9d, 0x200
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0xd0]
call fcn.140090c94
mov bl, al
lea rcx, [rsp + 0xd0]
call fcn.140005cfc
nop
lea rcx, [rsp + 0xf0]
call fcn.140005cfc
nop
test bl, bl
je 0x140043a12
call fcn.14008d174
mov r9d, 1
mov r8, qword [rax]
xor edx, edx
lea rcx, [rsp + 0x330]
call fcn.14000499c
nop
lea rbx, [rax + 0x10]
lea rdx, str.Overriding_Language_value_to__d
mov rcx, rbx
call fcn.1400098d0
mov edx, dword [rsp + 0x40]
mov rcx, rbx
call fcn.14003fde0
nop
lea rcx, [rsp + 0x3d8]
call fcn.140004938
nop
mov qword [rsp + 0x3d8], r14
lea rcx, [rsp + 0x3d8]
call fcn.140002658
nop
mov eax, dword [rsp + 0x40]
jmp 0x140043a1b
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [rsi + 0x1b0], eax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [rsi + 0x1b4], eax
lea rdx, [rsi + 0x1b8]
mov ecx, dword [rsi + 0x1b0]
call fcn.140042fa8
lea rdx, [rsi + 0x1d8]
mov ecx, dword [rsi + 0x1b4]
call fcn.140042fa8
lea rcx, [rsi + 0x190]
mov r15d, 7
mov r8d, r15d
lea r12, str.Unknown
mov rdx, r12
call fcn.140005dd4
mov rcx, rsi
call fcn.1400419c0
test al, al
jne 0x140043a9f
call fcn.14008d174
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.GetDXVersion_Failed
lea edx, [r15 - 3]
mov rax, qword [rax + 0x38]
call qword [case.0x14007ca24.0]
mov rcx, rsi
call fcn.140041fd8
test al, al
jne 0x140043ab2
mov byte [rsi + 0x220], dil
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x330]
call fcn.1400b6460
mov edx, 0x104
lea rcx, [rsp + 0x330]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x140043ae6
mov r8, r15
mov rdx, r12
jmp 0x140043b04
lea rax, [rsp + 0x330]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140043af2
lea rdx, [rsp + 0x330]
lea rcx, [rsi + 0x58]
call fcn.140005dd4
lea rbx, [rsi + 0x38]
mov r8, r15
mov rdx, r12
mov rcx, rbx
call fcn.140005dd4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftInternet_Explorer
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140043c0f
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140118058]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140043bf0
mov word [rsp + 0x38], di
mov edx, dword [rsp + 0x30]
shr rdx, 1
inc rdx
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140044d64
nop
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140118058]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rdx, qword [rsp + 0x58]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x140043bd1
mov rcx, rbx
call fcn.140005dd4
nop
lea rcx, [rsp + 0x58]
call fcn.140044fc8
jmp 0x140043c04
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x140043bfd
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdi
mov word [rax], di
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r14, [rsi + 0x78]
mov r8, r15
mov rdx, r12
mov rcx, r14
call fcn.140005dd4
lea rcx, [rsi + 0x98]
mov r8, r15
mov rdx, r12
call fcn.140005dd4
nop
lea rdx, str.HKLMSOFTWAREMicrosoftWindowsCurrentVersion
lea rcx, [rsp + 0xd0]
call fcn.140009898
nop
mov r8d, 0x20119
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x38]
call fcn.1400909fc
nop
lea rcx, [rsp + 0xd0]
call fcn.140005cfc
nop
lea rdx, str.ProgramFilesDir
lea rcx, [rsp + 0xd0]
call fcn.140009898
nop
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x38]
call fcn.14008ff9c
nop
lea rbx, [rax + 0x10]
cmp r14, rbx
je 0x140043ccc
mov rcx, r14
call fcn.140005cfc
movups xmm0, xmmword [rbx]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], r15
mov word [rbx], di
lea rcx, [rsp + 0x150]
call fcn.14000b7a4
nop
lea rcx, [rsp + 0xd0]
call fcn.140005cfc
nop
jmp 0x140043cf5
lea rdx, str.ProgramFilesDir__x86_
lea rcx, [rsp + 0xf0]
call fcn.140009898
nop
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0x2d0]
lea rcx, [rsp + 0x38]
call fcn.14008ff9c
nop
lea rbx, [rax + 0x10]
lea r14, [rsi + 0x98]
cmp r14, rbx
je 0x140043d58
mov rcx, r14
call fcn.140005cfc
movups xmm0, xmmword [rbx]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], r15
mov word [rbx], di
lea rcx, [rsp + 0x2d0]
call fcn.14000b7a4
nop
lea rcx, [rsp + 0xf0]
call fcn.140005cfc
nop
jmp 0x140043d81
lea rcx, [rsp + 0x38]
call fcn.14008fc74
nop
jmp 0x140043d99
cmp dword [rsi + 0x138], 6
jb 0x140043daa
mov rcx, rsi
call fcn.140042664
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004405b
mov dword [rsp + 0x30], edi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.PagingFiles
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov word [rsp + 0x38], di
mov edx, dword [rsp + 0x30]
shr rdx, 1
inc rdx
lea r8, [rsp + 0x38]
lea rcx, [rsp + 0x58]
call fcn.140044d64
nop
test ebx, ebx
jne 0x140043e55
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.PagingFiles
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x100], rdi
mov qword [rsp + 0x108], rdi
mov qword [rsp + 0x100], rdi
mov qword [rsp + 0x108], r15
mov word [rsp + 0xf0], di
mov r14d, edi
cmp dword [rsp + 0x30], edi
jbe 0x140044037
mov r12, rbx
cmp word [rbx], di
jne 0x140044025
mov rcx, r12
call fcn.1400bf410
mov r8, r12
sub r8, rbx
sar r8, 1
inc r8
cmp rax, r8
cmovb r8, rax
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xe8], r15
mov word [rsp + 0xd0], di
mov rdx, r12
lea rcx, [rsp + 0xd0]
call fcn.140005dd4
nop
lea rcx, [rsp + 0xf0]
call fcn.140005cfc
movups xmm0, xmmword [rsp + 0xd0]
movups xmmword [rsp + 0xf0], xmm0
movups xmm1, xmmword [rsp + 0xe0]
movups xmmword [rsp + 0x100], xmm1
mov qword [rsp + 0xe0], rdi
mov qword [rsp + 0xe8], r15
mov word [rsp + 0xd0], di
lea rcx, [rsp + 0xd0]
call fcn.140005cfc
nop
cmp qword [rsp + 0x100], rdi
je 0x140044037
lea r12, [rbx + 2]
mov ecx, 0x28
call fcn.140097464
mov qword [rsp + 0x50], rax
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r15
mov word [rax], di
mov qword [rsp + 0x38], rax
mov dword [rax + 0x20], edi
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x24], edi
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x330]
call fcn.1400b6460
mov rax, qword [rsp + 0x38]
lea rdx, [rax + 0x24]
lea r9, [rax + 0x20]
lea rcx, [rsp + 0xf0]
cmp qword [rsp + 0x108], 8
cmovae rcx, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rdx
lea r8, [rsp + 0x330]
lea rdx, str._s__d__d
call fcn.14004021c
lea rax, [rsp + 0x330]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x140043fdf
lea rdx, [rsp + 0x330]
mov rcx, qword [rsp + 0x38]
call fcn.140005dd4
lea rcx, [rsi + 0x2270]
mov rdx, qword [rcx + 8]
cmp qword [rcx + 0x10], rdx
je 0x14004401b
mov rax, qword [rsp + 0x38]
mov qword [rdx], rax
add qword [rcx + 8], 8
jmp 0x140044025
lea r8, [rsp + 0x38]
call fcn.14003f96c
add rbx, 2
inc r14d
cmp r14d, dword [rsp + 0x30]
jb 0x140043e92
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0xf0]
call fcn.140005cfc
nop
lea rcx, [rsp + 0x58]
call fcn.140044fc8
mov rcx, qword [rsi + 0x150]
shr rcx, 0xa
mov eax, ecx
shr eax, 1
add eax, ecx
mov dword [rsi + 0x2264], eax
lea rcx, [rsp + 0x80]
call fcn.1400465f4
nop
lea r8, str.Select_AllocatedBaseSize_From_Win32_PageFileUsage
lea rdx, str.ROOTCIMV2
lea rcx, [rsp + 0x80]
call fcn.140046748
test al, al
jne 0x1400440c2
call fcn.14008d174
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.Failed_to_initialize_WMIHelper_inWin32_PageFileUsage::AllocatedBaseSize
mov edx, 1
mov rax, qword [rax + 0x38]
call qword [case.0x14007ca24.0]
jmp 0x1400440fe
mov dword [rsp + 0x38], edi
lea r8, [rsp + 0x38]
lea rdx, str.AllocatedBaseSize
lea rcx, [rsp + 0x80]
call fcn.140046fc4
test al, al
je 0x1400440ed
mov eax, dword [rsp + 0x38]
add dword [rsi + 0x2268], eax
lea rcx, [rsp + 0x80]
call fcn.14004723c
test al, al
jne 0x1400440c2
lea rcx, [rsp + 0x80]
call fcn.1400466c0
mov ecx, 0x43
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsi + 0x2248], eax
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsi + 0x224c], eax
mov ecx, 0x1000
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsi + 0x2250], eax
mov ecx, 0x2000
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [rsi + 0x2254], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [rsi + 0x2258], edx
call fcn.14008d174
mov rcx, qword [rax]
mov rax, qword [rcx]
lea r8, str.Exit_updtShimAPIClass::DetectOSInfo
mov edx, 3
mov rax, qword [rax + 0x38]
call qword [case.0x14007ca24.0]
nop
lea rcx, [rsp + 0x80]
call fcn.140046684
xor eax, eax
mov rcx, qword [rsp + 0x540]
xor rcx, rsp
call fcn.140097440
lea r11, [rsp + 0x550]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret