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

Disassembly:
push 0x614
mov eax, 0x52d67d
call fcn.004f4139
push str.Enter_updtShimAPIClass::DetectOSInfo
mov ebx, ecx
push 3
pop ecx
mov dword [ebp - 0x5e8], ebx
call fcn.004284f3
pop ecx
call fcn.0042cb64
push eax
lea eax, [ebx + 0x7c]
push eax
call fcn.00403fad
call fcn.0042c844
push eax
lea eax, [ebx + 0xb4]
push eax
call fcn.00403fad
lea eax, [ebx + 0x98]
push eax
call fcn.00463687
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x4637ec
call esi
mov dword [ebp - 0x5cc], eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004036d7
mov edi, eax
and dword [ebp - 4], 0
push str.GetOSString_failed:
push edi
call fcn.00406897
pop ecx
pop ecx
push dword [ebp - 0x5cc]
push edi
call fcn.004053dc
lea eax, [ebp - 0x434]
push eax
mov eax, edi
call fcn.00403741
mov byte [ebp - 4], 1
cmp dword [ebp - 0x420], 8
mov eax, dword [ebp - 0x434]
jae 0x4637c4
lea eax, [ebp - 0x434]
push eax
push 2
pop ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x434]
call fcn.004014ad
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa8]
call fcn.004025ae
mov edi, 0x114
push edi
lea eax, [ebp - 0x5c8]
push 0
push eax
call fcn.004e9070
add esp, 0xc
lea eax, [ebp - 0x5c8]
push eax
mov dword [ebp - 0x5c8], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x46389f
call esi
mov ebx, eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004036d7
mov esi, eax
push 2
pop edi
mov dword [ebp - 4], edi
push str.GetVersionEx_failed:
push esi
call fcn.00406897
pop ecx
pop ecx
push ebx
push esi
call fcn.004053dc
lea eax, [ebp - 0x434]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 3
cmp dword [ebp - 0x420], 8
mov eax, dword [ebp - 0x434]
jae 0x463871
lea eax, [ebp - 0x434]
push eax
mov ecx, edi
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x434]
call fcn.004014ad
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa8]
call fcn.004025ae
mov eax, edi
jmp 0x464268
mov eax, dword [ebp - 0x5c4]
mov dword [ebx + 0xec], eax
mov eax, dword [ebp - 0x5c0]
mov dword [ebx + 0xf0], eax
mov eax, dword [ebp - 0x5bc]
mov dword [ebx + 0xf4], eax
mov eax, dword [ebp - 0x5b8]
mov dword [ebx + 0xf8], eax
lea eax, [ebp - 0x5b4]
push eax
lea eax, [ebx + 0x128]
push eax
call fcn.00403fad
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4e
call edi
push 0x4f
mov dword [ebx + 0x1df8], eax
call edi
lea edi, [ebx + 0x1dc8]
mov dword [ebx + 0x1dfc], eax
call fcn.00463605
test al, al
jne 0x463994
call esi
mov dword [ebp - 0x5cc], eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004036d7
mov edi, eax
mov dword [ebp - 4], 4
push str.GetSHIMLink_failed
push edi
call fcn.00406897
pop ecx
pop ecx
push dword [ebp - 0x5cc]
push edi
call fcn.004053dc
lea eax, [ebp - 0x434]
push eax
mov eax, edi
call fcn.00403741
mov byte [ebp - 4], 5
cmp dword [ebp - 0x420], 8
mov eax, dword [ebp - 0x434]
jae 0x46396c
lea eax, [ebp - 0x434]
push eax
push 2
pop ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x434]
call fcn.004014ad
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa8]
call fcn.004025ae
mov eax, dword [ebx + 0xec]
cmp eax, 5
ja 0x4639aa
jne 0x463a12
cmp dword [ebx + 0xf0], 1
jb 0x463a12
mov edi, 0x11c
push edi
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.004e9070
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x130], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4639e8
xor ecx, ecx
push str.GetVersionEx_Failed
inc ecx
call fcn.004284f3
pop ecx
jmp 0x463a12
mov ax, word [ebp - 0x1c]
mov word [ebx + 0xfc], ax
mov ax, word [ebp - 0x1a]
mov word [ebx + 0xfe], ax
mov ax, word [ebp - 0x18]
mov word [ebx + 0x100], ax
mov al, byte [ebp - 0x16]
mov byte [ebx + 0x102], al
push 0x40
pop edi
push edi
lea eax, [ebp - 0x490]
push 0
push eax
call fcn.004e9070
add esp, 0xc
lea eax, [ebp - 0x490]
push eax
mov dword [ebp - 0x490], edi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x463aba
call esi
mov edi, eax
lea eax, [ebp - 0xa8]
push eax
call fcn.004036d7
mov esi, eax
mov dword [ebp - 4], 6
push str.GlobalMemoryStatusEx_Failed_ec
push esi
call fcn.00406897
pop ecx
pop ecx
push edi
push esi
call fcn.004053dc
lea eax, [ebp - 0x434]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 7
cmp dword [ebp - 0x420], 8
mov eax, dword [ebp - 0x434]
jae 0x463a92
lea eax, [ebp - 0x434]
xor ecx, ecx
push eax
inc ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x434]
call fcn.004014ad
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa8]
call fcn.004025ae
mov eax, dword [ebp - 0x488]
mov ecx, dword [ebp - 0x484]
shrd eax, ecx, 0xa
shr ecx, 0xa
mov dword [ebx + 0x10c], ecx
mov ecx, dword [ebp - 0x47c]
mov dword [ebx + 0x108], eax
mov eax, dword [ebp - 0x480]
shrd eax, ecx, 0xa
and dword [ebp - 0x5f0], 0
shr ecx, 0xa
mov dword [ebx + 0x114], ecx
mov ecx, dword [ebp - 0x464]
mov dword [ebx + 0x110], eax
mov eax, dword [ebp - 0x468]
shrd eax, ecx, 0xa
shr ecx, 0xa
mov dword [ebx + 0x11c], ecx
mov ecx, dword [ebp - 0x45c]
mov dword [ebx + 0x118], eax
mov eax, dword [ebp - 0x460]
shrd eax, ecx, 0xa
shr ecx, 0xa
push str.NotifiusUILanguage
lea esi, [ebp - 0x450]
mov dword [ebx + 0x120], eax
mov dword [ebx + 0x124], ecx
call fcn.0040319e
push 8
pop edi
mov dword [ebp - 4], edi
push str.HKLMSOFTWARENVIDIA_CorporationGlobalNVUpdatus
lea esi, [ebp - 0x434]
call fcn.0040319e
mov byte [ebp - 4], 9
lea eax, [ebp - 0x5f0]
push eax
lea eax, [ebp - 0x450]
push eax
mov edx, 0x200
mov ecx, esi
call fcn.004269bc
pop ecx
pop ecx
mov byte [ebp - 0x5d5], al
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.004014ad
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.004014ad
cmp byte [ebp - 0x5d5], 0
je 0x463c33
lea eax, [ebp - 0xa8]
push eax
call fcn.004036d7
mov esi, eax
mov dword [ebp - 4], 0xa
push str.Overriding_Language_value_to__d
push esi
call fcn.00406897
pop ecx
pop ecx
push dword [ebp - 0x5f0]
push esi
call fcn.004053dc
lea eax, [ebp - 0x434]
push eax
mov eax, esi
call fcn.00403741
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x434]
cmp dword [ebp - 0x420], edi
jae 0x463c04
lea eax, [ebp - 0x434]
push eax
xor ecx, ecx
call fcn.004284f3
pop ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x434]
call fcn.004014ad
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa8]
call fcn.004025ae
mov eax, dword [ebp - 0x5f0]
jmp 0x463c3c
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebx + 0x160], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
push dword [ebx + 0x160]
movzx eax, ax
lea esi, [ebx + 0x168]
mov dword [ebx + 0x164], eax
call fcn.004635a5
pop ecx
push dword [ebx + 0x164]
lea esi, [ebx + 0x184]
call fcn.004635a5
pop ecx
mov esi, 0x53bb14
push esi
lea eax, [ebx + 0x144]
push eax
call fcn.00403fad
mov ecx, ebx
call fcn.00462fec
test al, al
jne 0x463ca0
push str.GetDXVersion_Failed
push 4
pop ecx
call fcn.004284f3
pop ecx
mov edi, ebx
call fcn.004632f6
test al, al
jne 0x463cb1
mov byte [ebx + 0x1c0], al
xor eax, eax
push 0x206
mov word [ebp - 0x418], ax
xor edi, edi
lea eax, [ebp - 0x416]
push edi
push eax
call fcn.004e9070
add esp, 0xc
push 0x104
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x463cea
push esi
jmp 0x463cf1
lea eax, [ebp - 0x418]
push eax
lea eax, [ebx + 0x44]
push eax
call fcn.00403fad
lea eax, [ebx + 0x28]
push esi
push eax
call fcn.00403fad
lea eax, [ebp - 0x5d4]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x463ddb
lea eax, [ebp - 0x5d0]
push eax
push edi
push edi
push edi
push str.Version
push dword [ebp - 0x5d4]
mov dword [ebp - 0x5d0], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, edi
jne 0x463dbc
lea eax, [ebp - 0x5cc]
push eax
mov eax, dword [ebp - 0x5d0]
shr eax, 1
inc eax
push eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x5cc], edi
call fcn.0040a839
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x5d0]
push eax
push dword [ebp - 0x444]
push edi
push edi
push str.Version
push dword [ebp - 0x5d4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x444]
lea eax, [ebx + 0x28]
push eax
call fcn.00403fad
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x444]
call fcn.00460ab5
mov esi, 0x53bb14
jmp 0x463dcf
lea eax, [ebx + 0x28]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], edi
jb 0x463dca
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x5d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebx + 0x60]
push esi
push eax
call fcn.00403fad
lea eax, [ebp - 0x5d4]
push eax
push 0x20019
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x463eb5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x5d0]
push eax
push edi
push edi
push edi
push str.ProgramFilesDir
push dword [ebp - 0x5d4]
mov dword [ebp - 0x5d0], edi
call esi
test eax, eax
jne 0x463e96
lea eax, [ebp - 0x5cc]
push eax
mov eax, dword [ebp - 0x5d0]
shr eax, 1
inc eax
push eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x5cc], edi
call fcn.0040a839
mov dword [ebp - 4], 0xd
lea eax, [ebp - 0x5d0]
push eax
push dword [ebp - 0x444]
push edi
push edi
push str.ProgramFilesDir
push dword [ebp - 0x5d4]
call esi
push dword [ebp - 0x444]
lea eax, [ebx + 0x60]
push eax
call fcn.00403fad
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x444]
call fcn.00460ab5
jmp 0x463ea9
lea eax, [ebx + 0x60]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], edi
jb 0x463ea4
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x5d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x5d4]
push eax
push 0x20019
push edi
push dword [0x573dfc]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x464126
lea eax, [ebp - 0x5d0]
push eax
push edi
push edi
push edi
mov esi, str.PagingFiles
push esi
push dword [ebp - 0x5d4]
mov dword [ebp - 0x5d0], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x5e0], eax
lea eax, [ebp - 0x5cc]
push eax
mov eax, dword [ebp - 0x5d0]
shr eax, 1
inc eax
push eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x5cc], edi
call fcn.0040a839
mov dword [ebp - 4], 0xe
cmp dword [ebp - 0x5e0], edi
jne 0x463f50
lea eax, [ebp - 0x5d0]
push eax
push dword [ebp - 0x444]
push edi
push edi
push esi
push dword [ebp - 0x5d4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x444]
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x5dc], eax
mov dword [ebp - 0x5e4], eax
call fcn.0040318b
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x5e0], edi
cmp dword [ebp - 0x5d0], edi
jbe 0x4640fc
mov eax, dword [ebp - 0x5dc]
cmp word [eax], di
jne 0x4640d3
push dword [ebp - 0x5e4]
call fcn.004e904b
mov dword [ebp - 0x5cc], eax
mov eax, dword [ebp - 0x5e4]
sub eax, dword [ebp - 0x5dc]
pop ecx
sar eax, 1
inc eax
cmp dword [ebp - 0x5cc], eax
mov dword [ebp - 0x5ec], eax
lea eax, [ebp - 0x5cc]
jb 0x463fcd
lea eax, [ebp - 0x5ec]
push dword [eax]
mov ecx, dword [ebp - 0x5e4]
lea eax, [ebp - 0x4ac]
call fcn.00404c3a
mov byte [ebp - 4], 0x10
mov ebx, eax
lea eax, [ebp - 0x434]
call fcn.00403e2e
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x4ac]
call fcn.004014ad
cmp dword [ebp - 0x424], 0
je 0x4640f4
mov eax, dword [ebp - 0x5dc]
add eax, 2
push 0x24
mov dword [ebp - 0x5e4], eax
call fcn.004e7983
mov esi, eax
pop ecx
mov dword [ebp - 0x5ec], esi
mov byte [ebp - 4], 0x11
test esi, esi
je 0x464041
mov ecx, esi
call fcn.0040318b
mov byte [ebp - 4], 0x11
jmp 0x464043
xor esi, esi
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x5ec], esi
test esi, esi
je 0x4640cb
xor eax, eax
lea edi, [esi + 0x1c]
and dword [edi], 0
lea ebx, [esi + 0x20]
and dword [ebx], 0
push 0x1fe
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004e9070
mov eax, dword [ebp - 0x434]
add esp, 0xc
cmp dword [ebp - 0x420], 8
jae 0x464090
lea eax, [ebp - 0x434]
push ebx
push edi
lea ecx, [ebp - 0x210]
push ecx
push str._s__d__d
push eax
call fcn.004e8528
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.00403fad
mov esi, dword [ebp - 0x5e8]
add esi, 0x1e0c
lea ecx, [ebp - 0x5ec]
call fcn.00460a3d
mov ebx, dword [ebp - 0x5e8]
xor edi, edi
add dword [ebp - 0x5dc], 2
inc dword [ebp - 0x5e0]
mov eax, dword [ebp - 0x5e0]
cmp eax, dword [ebp - 0x5d0]
jb 0x463f83
jmp 0x4640fc
mov ebx, dword [ebp - 0x5e8]
xor edi, edi
push dword [ebp - 0x5d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x434]
call fcn.004014ad
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x444]
call fcn.00460ab5
call fcn.0042c8f4
push 2
pop ecx
cmp eax, ecx
jl 0x464153
cmp eax, 3
jle 0x46414b
add eax, 0xfffffffb
cmp eax, 7
ja 0x464153
mov dword [ebx + 0x1e00], 0x10
jmp 0x464159
mov dword [ebx + 0x1e00], ecx
jmp 0x464159
mov dword [ebx + 0x1e00], edi
mov eax, dword [ebx + 0x108]
mov ecx, dword [ebx + 0x10c]
shrd eax, ecx, 0xa
shr ecx, 0xa
mov ecx, eax
shr ecx, 1
add ecx, eax
lea eax, [ebp - 0x620]
push eax
mov dword [ebx + 0x1e04], ecx
call fcn.00459782
mov dword [ebp - 4], 0x13
push str.ROOTCIMV2
lea eax, [ebp - 0x620]
push eax
mov ecx, str.Select_AllocatedBaseSize_From_Win32_PageFileUsage
call fcn.00459874
test al, al
jne 0x4641b7
xor ecx, ecx
push str.Failed_to_initialize_WMIHelper_inWin32_PageFileUsage::AllocatedBaseSize
inc ecx
call fcn.004284f3
pop ecx
jmp 0x4641f2
xor edi, edi
mov dword [ebp - 0x5cc], edi
push str.AllocatedBaseSize
lea edi, [ebp - 0x5cc]
lea ecx, [ebp - 0x620]
call fcn.00459fc1
test al, al
je 0x4641e3
mov eax, dword [ebp - 0x5cc]
add dword [ebx + 0x1e08], eax
lea ecx, [ebp - 0x620]
call fcn.0045a2f7
test al, al
jne 0x4641b5
lea eax, [ebp - 0x620]
call fcn.00459821
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x43
call esi
push 0x2001
mov dword [ebx + 0x1de4], eax
call esi
push 0x1000
mov dword [ebx + 0x1de8], eax
call esi
push 0x2000
mov dword [ebx + 0x1dec], eax
call esi
mov dword [ebx + 0x1df0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
push str.Exit_updtShimAPIClass::DetectOSInfo
push 3
pop ecx
mov dword [ebx + 0x1df4], eax
call fcn.004284f3
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x620]
call fcn.004597e9
xor eax, eax
call fcn.004f41bc
ret