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

Disassembly:
push 0x61c
mov eax, 0x5b3057
call fcn.0056bee1
mov ebx, ecx
mov dword [ebp - 0x5ec], ebx
push str.Enter_updtShimAPIClass::DetectOSInfo
push 3
pop ecx
call fcn.0047feaf
pop ecx
call fcn.004857ab
push eax
lea eax, [ebx + 0x98]
push eax
call fcn.00404560
call fcn.004853ee
push eax
lea eax, [ebx + 0xd0]
push eax
call fcn.00404560
lea eax, [ebx + 0xb4]
push eax
call fcn.004cd73c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x4cdab3
call esi
mov dword [ebp - 0x5d4], eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00403aba
mov edi, eax
and dword [ebp - 4], 0
push str.GetOSString_failed:
push edi
call fcn.0040635f
pop ecx
pop ecx
push dword [ebp - 0x5d4]
push edi
call fcn.004109e7
lea eax, [ebp - 0x43c]
push eax
mov eax, edi
call fcn.00403b24
mov byte [ebp - 4], 1
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4cda8b
lea eax, [ebp - 0x43c]
push eax
push 2
pop ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x43c]
call fcn.004037d0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.004027ed
mov edi, 0x114
push edi
push 0
lea eax, [ebp - 0x5d0]
push eax
call fcn.0055fda0
add esp, 0xc
mov dword [ebp - 0x5d0], edi
lea eax, [ebp - 0x5d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4cdb66
call esi
mov ebx, eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00403aba
mov esi, eax
push 2
pop edi
mov dword [ebp - 4], edi
push str.GetVersionEx_failed:
push esi
call fcn.0040635f
pop ecx
pop ecx
push ebx
push esi
call fcn.004109e7
lea eax, [ebp - 0x43c]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 3
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4cdb38
lea eax, [ebp - 0x43c]
push eax
mov ecx, edi
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x43c]
call fcn.004037d0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.004027ed
mov eax, edi
jmp 0x4ce5b6
mov eax, dword [ebp - 0x5cc]
mov dword [ebx + 0x108], eax
mov eax, dword [ebp - 0x5c8]
mov dword [ebx + 0x10c], eax
mov eax, dword [ebp - 0x5c4]
mov dword [ebx + 0x110], eax
mov eax, dword [ebp - 0x5c0]
mov dword [ebx + 0x114], eax
lea eax, [ebp - 0x5bc]
push eax
lea eax, [ebx + 0x140]
push eax
call fcn.00404560
push 0x4e
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call edi
mov dword [ebx + 0x1e10], eax
push 0x4f
call edi
mov dword [ebx + 0x1e14], eax
lea edi, [ebx + 0x1de0]
call fcn.004cd6ba
test al, al
jne 0x4cdc5b
call esi
mov dword [ebp - 0x5d4], eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00403aba
mov edi, eax
mov dword [ebp - 4], 4
push str.GetSHIMLink_failed
push edi
call fcn.0040635f
pop ecx
pop ecx
push dword [ebp - 0x5d4]
push edi
call fcn.004109e7
lea eax, [ebp - 0x43c]
push eax
mov eax, edi
call fcn.00403b24
mov byte [ebp - 4], 5
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4cdc33
lea eax, [ebp - 0x43c]
push eax
push 2
pop ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x43c]
call fcn.004037d0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.004027ed
mov eax, dword [ebx + 0x108]
cmp eax, 5
ja 0x4cdc71
jne 0x4cdcd9
cmp dword [ebx + 0x10c], 1
jb 0x4cdcd9
mov edi, 0x11c
push edi
push 0
lea eax, [ebp - 0x138]
push eax
call fcn.0055fda0
add esp, 0xc
mov dword [ebp - 0x138], edi
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4cdcaf
push str.GetVersionEx_Failed
xor ecx, ecx
inc ecx
call fcn.0047feaf
pop ecx
jmp 0x4cdcd9
mov ax, word [ebp - 0x24]
mov word [ebx + 0x118], ax
mov ax, word [ebp - 0x22]
mov word [ebx + 0x11a], ax
mov ax, word [ebp - 0x20]
mov word [ebx + 0x11c], ax
mov al, byte [ebp - 0x1e]
mov byte [ebx + 0x11e], al
push 0x40
pop edi
push edi
push 0
lea eax, [ebp - 0x498]
push eax
call fcn.0055fda0
add esp, 0xc
mov dword [ebp - 0x498], edi
lea eax, [ebp - 0x498]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x4cdd81
call esi
mov edi, eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00403aba
mov esi, eax
mov dword [ebp - 4], 6
push str.GlobalMemoryStatusEx_Failed_ec
push esi
call fcn.0040635f
pop ecx
pop ecx
push edi
push esi
call fcn.004109e7
lea eax, [ebp - 0x43c]
push eax
mov eax, esi
call fcn.00403b24
mov byte [ebp - 4], 7
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4cdd59
lea eax, [ebp - 0x43c]
push eax
xor ecx, ecx
inc ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x43c]
call fcn.004037d0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.004027ed
mov eax, dword [ebp - 0x490]
mov ecx, dword [ebp - 0x48c]
shrd eax, ecx, 0xa
shr ecx, 0xa
mov dword [ebx + 0x120], eax
mov dword [ebx + 0x124], ecx
mov eax, dword [ebp - 0x488]
mov ecx, dword [ebp - 0x484]
shrd eax, ecx, 0xa
shr ecx, 0xa
mov dword [ebx + 0x128], eax
mov dword [ebx + 0x12c], ecx
mov eax, dword [ebp - 0x470]
mov ecx, dword [ebp - 0x46c]
shrd eax, ecx, 0xa
shr ecx, 0xa
mov dword [ebx + 0x130], eax
mov dword [ebx + 0x134], ecx
mov eax, dword [ebp - 0x468]
mov ecx, dword [ebp - 0x464]
shrd eax, ecx, 0xa
shr ecx, 0xa
mov dword [ebx + 0x138], eax
mov dword [ebx + 0x13c], ecx
and dword [ebp - 0x5dc], 0
push str.NotifiusUILanguage
lea esi, [ebp - 0x458]
call fcn.004037ae
mov dword [ebp - 4], 8
push str.HKLMSOFTWARENVIDIA_CorporationGlobalNVUpdatus
lea esi, [ebp - 0x43c]
call fcn.004037ae
mov byte [ebp - 4], 9
push 0x200
lea eax, [ebp - 0x5dc]
push eax
lea ecx, [ebp - 0x458]
mov edx, esi
call fcn.0047d6d4
pop ecx
pop ecx
mov byte [ebp - 0x5e1], al
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.004037d0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x458]
call fcn.004037d0
cmp byte [ebp - 0x5e1], 0
je 0x4cdefc
lea eax, [ebp - 0xb0]
push eax
call fcn.00403aba
mov edi, eax
mov dword [ebp - 4], 0xa
push str.Overriding_Language_value_to__d
push edi
call fcn.0040635f
pop ecx
pop ecx
mov esi, dword [ebp - 0x5dc]
push esi
push edi
call fcn.004109e7
lea eax, [ebp - 0x43c]
push eax
mov eax, edi
call fcn.00403b24
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4cdecd
lea eax, [ebp - 0x43c]
push eax
xor ecx, ecx
call fcn.0047feaf
pop ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x43c]
call fcn.004037d0
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.004027ed
mov dword [ebx + 0x178], esi
jmp 0x4cdf0b
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebx + 0x178], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [ebx + 0x17c], eax
lea esi, [ebx + 0x180]
push dword [ebx + 0x178]
call fcn.004cd65a
pop ecx
lea esi, [ebx + 0x19c]
push dword [ebx + 0x17c]
call fcn.004cd65a
mov dword [esp], str.Unknown
lea eax, [ebx + 0x15c]
push eax
call fcn.00404560
mov ecx, ebx
call fcn.004ccb05
test al, al
jne 0x4cdf69
push str.GetDXVersion_Failed
push 4
pop ecx
call fcn.0047feaf
pop ecx
mov edi, ebx
call fcn.004cce0f
test al, al
jne 0x4cdf7a
mov byte [ebx + 0x1d8], al
xor eax, eax
mov word [ebp - 0x420], ax
push 0x206
push eax
lea eax, [ebp - 0x41e]
push eax
call fcn.0055fda0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4cdfbf
mov esi, str.Unknown
push esi
lea eax, [ebx + 0x44]
push eax
call fcn.00404560
jmp 0x4cdfd4
lea eax, [ebp - 0x420]
push eax
lea eax, [ebx + 0x44]
push eax
call fcn.00404560
mov esi, str.Unknown
lea edi, [ebx + 0x28]
push esi
push edi
call fcn.00404560
lea eax, [ebp - 0x5e8]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
cmp eax, ecx
jne 0x4ce0b2
mov dword [ebp - 0x5d8], ecx
lea eax, [ebp - 0x5d8]
push eax
push ecx
push ecx
push ecx
mov esi, str.Version
push esi
push dword [ebp - 0x5e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ce090
and dword [ebp - 0x5d4], eax
lea eax, [ebp - 0x5d4]
push eax
mov eax, dword [ebp - 0x5d8]
shr eax, 1
inc eax
push eax
lea eax, [ebp - 0x44c]
call fcn.0042fa2b
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x5d8]
push eax
push dword [ebp - 0x44c]
push 0
push 0
push esi
push dword [ebp - 0x5e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x44c]
push edi
call fcn.00404560
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x44c]
call fcn.0043460f
jmp 0x4ce0a1
and dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x4ce09c
mov edi, dword [edi]
xor eax, eax
mov word [edi], ax
push dword [ebp - 0x5e8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, str.Unknown
lea edi, [ebx + 0x60]
push esi
push edi
call fcn.00404560
push esi
add ebx, 0x7c
push ebx
call fcn.00404560
mov dword [ebp - 4], 0xd
push str.HKLMSOFTWAREMicrosoftWindowsCurrentVersion
lea esi, [ebp - 0x43c]
call fcn.004037ae
mov byte [ebp - 4], 0xe
push 0x20119
mov edx, esi
lea ecx, [ebp - 0x5e0]
call fcn.0047dc6d
pop ecx
mov byte [ebp - 4], 0x10
mov ecx, esi
call fcn.004037d0
mov byte [ebp - 4], 0x11
push str.ProgramFilesDir
lea esi, [ebp - 0x43c]
call fcn.004037ae
mov byte [ebp - 4], 0x12
mov eax, esi
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x5e0]
call fcn.0047e469
mov byte [ebp - 4], 0x13
lea ebx, [eax + 0x10]
mov eax, edi
call fcn.0040447e
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x68]
call fcn.00409e7a
mov byte [ebp - 4], 0x11
mov ecx, esi
call fcn.004037d0
mov dword [ebp - 4], 0x10
mov byte [ebp - 4], 0x15
push str.ProgramFilesDir__x86_
lea esi, [ebp - 0x43c]
call fcn.004037ae
mov byte [ebp - 4], 0x16
mov eax, esi
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x5e0]
call fcn.0047e469
mov byte [ebp - 4], 0x17
lea ebx, [eax + 0x10]
mov edi, dword [ebp - 0x5ec]
lea eax, [edi + 0x7c]
call fcn.0040447e
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x68]
call fcn.00409e7a
mov byte [ebp - 4], 0x15
mov ecx, esi
call fcn.004037d0
mov dword [ebp - 4], 0x10
jmp 0x4ce1d4
mov byte [ebp - 4], 0xd
lea esi, [ebp - 0x5e0]
call fcn.0047da46
or dword [ebp - 4], 0xffffffff
jmp 0x4ce1f9
cmp dword [edi + 0x108], 6
jb 0x4ce208
push edi
call fcn.004cd0f0
lea eax, [ebp - 0x5e8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [0x632860]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4ce46a
mov dword [ebp - 0x5d8], ebx
lea eax, [ebp - 0x5d8]
push eax
push ebx
push ebx
push ebx
mov esi, str.PagingFiles
push esi
push dword [ebp - 0x5e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x5dc], eax
mov dword [ebp - 0x5d4], ebx
lea eax, [ebp - 0x5d4]
push eax
mov eax, dword [ebp - 0x5d8]
shr eax, 1
inc eax
push eax
lea eax, [ebp - 0x44c]
call fcn.0042fa2b
mov dword [ebp - 4], 0x1a
cmp dword [ebp - 0x5dc], ebx
jne 0x4ce2a5
lea eax, [ebp - 0x5d8]
push eax
push dword [ebp - 0x44c]
push ebx
push ebx
push esi
push dword [ebp - 0x5e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0x5f0], eax
mov dword [ebp - 0x5e0], eax
lea ecx, [ebp - 0x43c]
call fcn.0040379b
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x5dc], ebx
cmp dword [ebp - 0x5d8], ebx
jbe 0x4ce440
mov eax, dword [ebp - 0x5f0]
cmp word [eax], bx
jne 0x4ce41d
push dword [ebp - 0x5e0]
call fcn.0056039b
pop ecx
mov dword [ebp - 0x5d4], eax
mov eax, dword [ebp - 0x5e0]
sub eax, dword [ebp - 0x5f0]
sar eax, 1
inc eax
mov dword [ebp - 0x5f4], eax
cmp dword [ebp - 0x5d4], eax
lea eax, [ebp - 0x5d4]
jb 0x4ce322
lea eax, [ebp - 0x5f4]
push dword [eax]
mov ecx, dword [ebp - 0x5e0]
lea eax, [ebp - 0x4b4]
call fcn.00404d47
mov byte [ebp - 4], 0x1c
mov ebx, eax
lea eax, [ebp - 0x43c]
call fcn.0040447e
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x4b4]
call fcn.004037d0
cmp dword [ebp - 0x42c], 0
je 0x4ce43e
mov eax, dword [ebp - 0x5f0]
add eax, 2
mov dword [ebp - 0x5e0], eax
push 0x24
call fcn.0055db17
pop ecx
mov esi, eax
mov dword [ebp - 0x5f4], esi
mov byte [ebp - 4], 0x1d
test esi, esi
je 0x4ce396
mov ecx, esi
call fcn.0040379b
mov byte [ebp - 4], 0x1d
jmp 0x4ce398
xor esi, esi
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x5f4], esi
test esi, esi
je 0x4ce41b
lea ebx, [esi + 0x1c]
xor eax, eax
mov dword [ebx], eax
mov dword [esi + 0x20], eax
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x1fe
push eax
lea eax, [ebp - 0x216]
push eax
call fcn.0055fda0
add esp, 0xc
cmp dword [ebp - 0x428], 8
mov ecx, dword [ebp - 0x43c]
jae 0x4ce3e3
lea ecx, [ebp - 0x43c]
lea eax, [esi + 0x20]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
push str._s__d__d
push ecx
call fcn.0055edcd
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00404560
lea esi, [edi + 0x1e24]
lea ecx, [ebp - 0x5f4]
call fcn.004ca3f5
xor ebx, ebx
add dword [ebp - 0x5f0], 2
inc dword [ebp - 0x5dc]
mov eax, dword [ebp - 0x5dc]
cmp eax, dword [ebp - 0x5d8]
jb 0x4ce2d8
jmp 0x4ce440
xor ebx, ebx
push dword [ebp - 0x5e8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x43c]
call fcn.004037d0
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x44c]
call fcn.0043460f
call fcn.0048549e
push 2
pop ecx
cmp eax, ecx
jl 0x4ce497
cmp eax, 3
jle 0x4ce48f
add eax, 0xfffffffb
cmp eax, 9
ja 0x4ce497
mov dword [edi + 0x1e18], 0x10
jmp 0x4ce49d
mov dword [edi + 0x1e18], ecx
jmp 0x4ce49d
mov dword [edi + 0x1e18], ebx
mov eax, dword [edi + 0x120]
mov ecx, dword [edi + 0x124]
shrd eax, ecx, 0xa
shr ecx, 0xa
mov ecx, eax
shr ecx, 1
add ecx, eax
mov dword [edi + 0x1e1c], ecx
lea eax, [ebp - 0x628]
push eax
call fcn.004d1787
mov dword [ebp - 4], 0x1f
push str.ROOTCIMV2
lea eax, [ebp - 0x628]
push eax
mov ecx, str.Select_AllocatedBaseSize_From_Win32_PageFileUsage
call fcn.004d1879
cmp al, bl
jne 0x4ce4f9
push str.Failed_to_initialize_WMIHelper_inWin32_PageFileUsage::AllocatedBaseSize
xor ecx, ecx
inc ecx
call fcn.0047feaf
pop ecx
jmp 0x4ce540
mov dword [ebp - 0x5d4], ebx
push str.AllocatedBaseSize
lea edi, [ebp - 0x5d4]
lea ecx, [ebp - 0x628]
call fcn.004d1fc6
cmp al, bl
je 0x4ce52b
mov ecx, dword [ebp - 0x5d4]
mov eax, dword [ebp - 0x5ec]
add dword [eax + 0x1e20], ecx
lea ecx, [ebp - 0x628]
call fcn.004d22fc
test al, al
jne 0x4ce4f9
mov edi, dword [ebp - 0x5ec]
lea eax, [ebp - 0x628]
call fcn.004d1826
push 0x43
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call esi
mov dword [edi + 0x1dfc], eax
push 0x2001
call esi
mov dword [edi + 0x1e00], eax
push 0x1000
call esi
mov dword [edi + 0x1e04], eax
push 0x2000
call esi
mov dword [edi + 0x1e08], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [edi + 0x1e0c], eax
push str.Exit_updtShimAPIClass::DetectOSInfo
push 3
pop ecx
call fcn.0047feaf
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x628]
call fcn.004d17ee
xor eax, eax
call fcn.0056bf3d
ret