Function at 0x4c8f72
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, 0x5b36ed
call fcn.0056ce95
push str.Enter_updtShimAPIClass::DetectOSInfo
mov ebx, ecx
push 3
pop ecx
mov dword [ebp - 0x5ec], ebx
call fcn.0047c666
pop ecx
call fcn.00481fdc
push eax
lea eax, [ebx + 0x7c]
push eax
call fcn.0040ad38
call fcn.00481c1d
push eax
lea eax, [ebx + 0xb4]
push eax
call fcn.0040ad38
lea eax, [ebx + 0x98]
push eax
call fcn.004c8eef
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x4c9054
call esi
mov dword [ebp - 0x5cc], eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00409ac6
mov edi, eax
and dword [ebp - 4], 0
push str.GetOSString_failed:
push edi
call fcn.0040fa1f
pop ecx
pop ecx
push dword [ebp - 0x5cc]
push edi
call fcn.0040d432
lea eax, [ebp - 0x434]
push eax
mov eax, edi
call fcn.00409b30
mov byte [ebp - 4], 1
cmp dword [ebp - 0x420], 8
mov eax, dword [ebp - 0x434]
jae 0x4c902c
lea eax, [ebp - 0x434]
push eax
push 2
pop ecx
call fcn.0047c666
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x434]
call fcn.004090d2
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa8]
call fcn.004021a3
mov edi, 0x114
push edi
lea eax, [ebp - 0x5c8]
push 0
push eax
call fcn.00560d40
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 0x4c9107
call esi
mov ebx, eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00409ac6
mov esi, eax
push 2
pop edi
mov dword [ebp - 4], edi
push str.GetVersionEx_failed:
push esi
call fcn.0040fa1f
pop ecx
pop ecx
push ebx
push esi
call fcn.0040d432
lea eax, [ebp - 0x434]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 3
cmp dword [ebp - 0x420], 8
mov eax, dword [ebp - 0x434]
jae 0x4c90d9
lea eax, [ebp - 0x434]
push eax
mov ecx, edi
call fcn.0047c666
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x434]
call fcn.004090d2
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa8]
call fcn.004021a3
mov eax, edi
jmp 0x4c9ae1
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.0040ad38
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.004c8e6d
test al, al
jne 0x4c91fc
call esi
mov dword [ebp - 0x5cc], eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00409ac6
mov edi, eax
mov dword [ebp - 4], 4
push str.GetSHIMLink_failed
push edi
call fcn.0040fa1f
pop ecx
pop ecx
push dword [ebp - 0x5cc]
push edi
call fcn.0040d432
lea eax, [ebp - 0x434]
push eax
mov eax, edi
call fcn.00409b30
mov byte [ebp - 4], 5
cmp dword [ebp - 0x420], 8
mov eax, dword [ebp - 0x434]
jae 0x4c91d4
lea eax, [ebp - 0x434]
push eax
push 2
pop ecx
call fcn.0047c666
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x434]
call fcn.004090d2
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa8]
call fcn.004021a3
mov eax, dword [ebx + 0xec]
cmp eax, 5
ja 0x4c9212
jne 0x4c927a
cmp dword [ebx + 0xf0], 1
jb 0x4c927a
mov edi, 0x11c
push edi
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.00560d40
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 0x4c9250
xor ecx, ecx
push str.GetVersionEx_Failed
inc ecx
call fcn.0047c666
pop ecx
jmp 0x4c927a
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.00560d40
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 0x4c9322
call esi
mov edi, eax
lea eax, [ebp - 0xa8]
push eax
call fcn.00409ac6
mov esi, eax
mov dword [ebp - 4], 6
push str.GlobalMemoryStatusEx_Failed_ec
push esi
call fcn.0040fa1f
pop ecx
pop ecx
push edi
push esi
call fcn.0040d432
lea eax, [ebp - 0x434]
push eax
mov eax, esi
call fcn.00409b30
mov byte [ebp - 4], 7
cmp dword [ebp - 0x420], 8
mov eax, dword [ebp - 0x434]
jae 0x4c92fa
lea eax, [ebp - 0x434]
xor ecx, ecx
push eax
inc ecx
call fcn.0047c666
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x434]
call fcn.004090d2
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa8]
call fcn.004021a3
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 - 0x5d8], 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.00409096
mov dword [ebp - 4], 8
push str.HKLMSOFTWARENVIDIA_CorporationGlobalNVUpdatus
lea esi, [ebp - 0x434]
call fcn.00409096
mov byte [ebp - 4], 9
lea eax, [ebp - 0x5d8]
push 0x200
push eax
lea ecx, [ebp - 0x450]
mov edx, esi
call fcn.00478d8f
pop ecx
pop ecx
mov byte [ebp - 0x5d9], al
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.004090d2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.004090d2
cmp byte [ebp - 0x5d9], 0
je 0x4c949d
lea eax, [ebp - 0xa8]
push eax
call fcn.00409ac6
mov edi, eax
mov dword [ebp - 4], 0xa
push str.Overriding_Language_value_to__d
push edi
call fcn.0040fa1f
mov esi, dword [ebp - 0x5d8]
pop ecx
pop ecx
push esi
push edi
call fcn.0040d432
lea eax, [ebp - 0x434]
push eax
mov eax, edi
call fcn.00409b30
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x420], 8
mov eax, dword [ebp - 0x434]
jae 0x4c946e
lea eax, [ebp - 0x434]
push eax
xor ecx, ecx
call fcn.0047c666
pop ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x434]
call fcn.004090d2
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xa8]
call fcn.004021a3
mov dword [ebx + 0x160], esi
jmp 0x4c94ac
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.004c8e0d
pop ecx
push dword [ebx + 0x164]
lea esi, [ebx + 0x184]
call fcn.004c8e0d
pop ecx
mov esi, str.Unknown
push esi
lea eax, [ebx + 0x144]
push eax
call fcn.0040ad38
mov ecx, ebx
call fcn.004c82f0
test al, al
jne 0x4c950a
push str.GetDXVersion_Failed
push 4
pop ecx
call fcn.0047c666
pop ecx
mov edi, ebx
call fcn.004c85fa
test al, al
jne 0x4c951b
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.00560d40
add esp, 0xc
push 0x104
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4c9554
push esi
jmp 0x4c955b
lea eax, [ebp - 0x418]
push eax
lea eax, [ebx + 0x44]
push eax
call fcn.0040ad38
lea eax, [ebx + 0x28]
push esi
push eax
call fcn.0040ad38
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 0x4c9645
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 0x4c9626
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.00464d2d
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.0040ad38
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x444]
call fcn.004c601a
mov esi, str.Unknown
jmp 0x4c9639
lea eax, [ebx + 0x28]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], edi
jb 0x4c9634
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.0040ad38
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 0x4c971f
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 0x4c9700
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.00464d2d
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.0040ad38
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x444]
call fcn.004c601a
jmp 0x4c9713
lea eax, [ebx + 0x60]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], edi
jb 0x4c970e
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x5d4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebx + 0xec], 6
jb 0x4c972e
push ebx
call fcn.004c88a3
lea eax, [ebp - 0x5d4]
push eax
push 0x20019
push edi
push dword [0x628744]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4c999f
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 - 0x5d8], 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.00464d2d
mov dword [ebp - 4], 0xe
cmp dword [ebp - 0x5d8], edi
jne 0x4c97c9
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 - 0x5e0], eax
mov dword [ebp - 0x5e8], eax
call fcn.00409083
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x5d8], edi
cmp dword [ebp - 0x5d0], edi
jbe 0x4c9975
mov eax, dword [ebp - 0x5e0]
cmp word [eax], di
jne 0x4c994c
push dword [ebp - 0x5e8]
call fcn.00560d1b
mov dword [ebp - 0x5cc], eax
mov eax, dword [ebp - 0x5e8]
sub eax, dword [ebp - 0x5e0]
pop ecx
sar eax, 1
inc eax
cmp dword [ebp - 0x5cc], eax
mov dword [ebp - 0x5e4], eax
lea eax, [ebp - 0x5cc]
jb 0x4c9846
lea eax, [ebp - 0x5e4]
push dword [eax]
mov ecx, dword [ebp - 0x5e8]
lea eax, [ebp - 0x4ac]
call fcn.0040c665
mov byte [ebp - 4], 0x10
mov ebx, eax
lea eax, [ebp - 0x434]
call fcn.0040ab21
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x4ac]
call fcn.004090d2
cmp dword [ebp - 0x424], 0
je 0x4c996d
mov eax, dword [ebp - 0x5e0]
add eax, 2
push 0x24
mov dword [ebp - 0x5e8], eax
call fcn.0055e7f7
mov esi, eax
pop ecx
mov dword [ebp - 0x5e4], esi
mov byte [ebp - 4], 0x11
test esi, esi
je 0x4c98ba
mov ecx, esi
call fcn.00409083
mov byte [ebp - 4], 0x11
jmp 0x4c98bc
xor esi, esi
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x5e4], esi
test esi, esi
je 0x4c9944
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.00560d40
mov eax, dword [ebp - 0x434]
add esp, 0xc
cmp dword [ebp - 0x420], 8
jae 0x4c9909
lea eax, [ebp - 0x434]
push ebx
push edi
lea ecx, [ebp - 0x210]
push ecx
push str._s__d__d
push eax
call fcn.0055faa6
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
push esi
call fcn.0040ad38
mov esi, dword [ebp - 0x5ec]
add esi, 0x1e0c
lea ecx, [ebp - 0x5e4]
call fcn.004ca502
mov ebx, dword [ebp - 0x5ec]
xor edi, edi
add dword [ebp - 0x5e0], 2
inc dword [ebp - 0x5d8]
mov eax, dword [ebp - 0x5d8]
cmp eax, dword [ebp - 0x5d0]
jb 0x4c97fc
jmp 0x4c9975
mov ebx, dword [ebp - 0x5ec]
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.004090d2
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x444]
call fcn.004c601a
call fcn.00481ccd
push 2
pop ecx
cmp eax, ecx
jl 0x4c99cc
cmp eax, 3
jle 0x4c99c4
add eax, 0xfffffffb
cmp eax, 9
ja 0x4c99cc
mov dword [ebx + 0x1e00], 0x10
jmp 0x4c99d2
mov dword [ebx + 0x1e00], ecx
jmp 0x4c99d2
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.004ccd2a
mov dword [ebp - 4], 0x13
push str.ROOTCIMV2
lea eax, [ebp - 0x620]
push eax
mov ecx, str.Select_AllocatedBaseSize_From_Win32_PageFileUsage
call fcn.004cce1c
test al, al
jne 0x4c9a30
xor ecx, ecx
push str.Failed_to_initialize_WMIHelper_inWin32_PageFileUsage::AllocatedBaseSize
inc ecx
call fcn.0047c666
pop ecx
jmp 0x4c9a6b
xor edi, edi
mov dword [ebp - 0x5cc], edi
push str.AllocatedBaseSize
lea edi, [ebp - 0x5cc]
lea ecx, [ebp - 0x620]
call fcn.004cd569
test al, al
je 0x4c9a5c
mov eax, dword [ebp - 0x5cc]
add dword [ebx + 0x1e08], eax
lea ecx, [ebp - 0x620]
call fcn.004cd89f
test al, al
jne 0x4c9a2e
lea eax, [ebp - 0x620]
call fcn.004ccdc9
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.0047c666
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x620]
call fcn.004ccd91
xor eax, eax
call fcn.0056cf18
ret