Function at 0x4ea57b
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, 0x56d815
call fcn.00523ccd
mov ebx, ecx
mov dword [ebp - 0x5ec], ebx
push str.Enter_updtShimAPIClass::DetectOSInfo
push 3
pop ecx
call fcn.00492b4d
pop ecx
call fcn.00497ae4
push eax
lea eax, [ebx + 0x98]
push eax
call fcn.0040411c
call fcn.00497727
push eax
lea eax, [ebx + 0xd0]
push eax
call fcn.0040411c
lea eax, [ebx + 0xb4]
push eax
call fcn.004ea2cd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x4ea660
call esi
mov dword [ebp - 0x5d4], eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004036c8
mov edi, eax
and dword [ebp - 4], 0
push str.GetOSString_failed:
push edi
call fcn.00405d7d
pop ecx
pop ecx
push dword [ebp - 0x5d4]
push edi
call fcn.0041056c
lea eax, [ebp - 0x43c]
push eax
mov eax, edi
call fcn.00403732
mov byte [ebp - 4], 1
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4ea638
lea eax, [ebp - 0x43c]
push eax
push 2
pop ecx
call fcn.00492b4d
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x43c]
call fcn.004033b1
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.00402669
mov edi, 0x114
push edi
push 0
lea eax, [ebp - 0x5d0]
push eax
call fcn.00517e90
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 0x4ea713
call esi
mov ebx, eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004036c8
mov esi, eax
push 2
pop edi
mov dword [ebp - 4], edi
push str.GetVersionEx_failed:
push esi
call fcn.00405d7d
pop ecx
pop ecx
push ebx
push esi
call fcn.0041056c
lea eax, [ebp - 0x43c]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 3
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4ea6e5
lea eax, [ebp - 0x43c]
push eax
mov ecx, edi
call fcn.00492b4d
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x43c]
call fcn.004033b1
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.00402669
mov eax, edi
jmp 0x4eb163
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.0040411c
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.004ea24b
test al, al
jne 0x4ea808
call esi
mov dword [ebp - 0x5d4], eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004036c8
mov edi, eax
mov dword [ebp - 4], 4
push str.GetSHIMLink_failed
push edi
call fcn.00405d7d
pop ecx
pop ecx
push dword [ebp - 0x5d4]
push edi
call fcn.0041056c
lea eax, [ebp - 0x43c]
push eax
mov eax, edi
call fcn.00403732
mov byte [ebp - 4], 5
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4ea7e0
lea eax, [ebp - 0x43c]
push eax
push 2
pop ecx
call fcn.00492b4d
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x43c]
call fcn.004033b1
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.00402669
mov eax, dword [ebx + 0x108]
cmp eax, 5
ja 0x4ea81e
jne 0x4ea886
cmp dword [ebx + 0x10c], 1
jb 0x4ea886
mov edi, 0x11c
push edi
push 0
lea eax, [ebp - 0x138]
push eax
call fcn.00517e90
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 0x4ea85c
push str.GetVersionEx_Failed
xor ecx, ecx
inc ecx
call fcn.00492b4d
pop ecx
jmp 0x4ea886
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.00517e90
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 0x4ea92e
call esi
mov edi, eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004036c8
mov esi, eax
mov dword [ebp - 4], 6
push str.GlobalMemoryStatusEx_Failed_ec
push esi
call fcn.00405d7d
pop ecx
pop ecx
push edi
push esi
call fcn.0041056c
lea eax, [ebp - 0x43c]
push eax
mov eax, esi
call fcn.00403732
mov byte [ebp - 4], 7
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4ea906
lea eax, [ebp - 0x43c]
push eax
xor ecx, ecx
inc ecx
call fcn.00492b4d
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x43c]
call fcn.004033b1
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.00402669
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.0040338f
mov dword [ebp - 4], 8
push str.HKLMSOFTWARENVIDIA_CorporationGlobalNVUpdatus
lea esi, [ebp - 0x43c]
call fcn.0040338f
mov byte [ebp - 4], 9
push 0x200
lea eax, [ebp - 0x5dc]
push eax
lea ecx, [ebp - 0x458]
mov edx, esi
call fcn.004905d3
pop ecx
pop ecx
mov byte [ebp - 0x5e1], al
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.004033b1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x458]
call fcn.004033b1
cmp byte [ebp - 0x5e1], 0
je 0x4eaaa9
lea eax, [ebp - 0xb0]
push eax
call fcn.004036c8
mov edi, eax
mov dword [ebp - 4], 0xa
push str.Overriding_Language_value_to__d
push edi
call fcn.00405d7d
pop ecx
pop ecx
mov esi, dword [ebp - 0x5dc]
push esi
push edi
call fcn.0041056c
lea eax, [ebp - 0x43c]
push eax
mov eax, edi
call fcn.00403732
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4eaa7a
lea eax, [ebp - 0x43c]
push eax
xor ecx, ecx
call fcn.00492b4d
pop ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x43c]
call fcn.004033b1
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.00402669
mov dword [ebx + 0x178], esi
jmp 0x4eaab8
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.004ea1eb
pop ecx
lea esi, [ebx + 0x19c]
push dword [ebx + 0x17c]
call fcn.004ea1eb
mov dword [esp], str.Unknown
lea eax, [ebx + 0x15c]
push eax
call fcn.0040411c
mov ecx, ebx
call fcn.004e9696
test al, al
jne 0x4eab16
push str.GetDXVersion_Failed
push 4
pop ecx
call fcn.00492b4d
pop ecx
mov edi, ebx
call fcn.004e99a0
test al, al
jne 0x4eab27
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.00517e90
add esp, 0xc
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4eab6c
mov esi, str.Unknown
push esi
lea eax, [ebx + 0x44]
push eax
call fcn.0040411c
jmp 0x4eab81
lea eax, [ebp - 0x420]
push eax
lea eax, [ebx + 0x44]
push eax
call fcn.0040411c
mov esi, str.Unknown
lea edi, [ebx + 0x28]
push esi
push edi
call fcn.0040411c
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 0x4eac5f
mov dword [ebp - 0x5d8], ecx
lea eax, [ebp - 0x5d8]
push eax
push ecx
push ecx
push ecx
mov esi, 0x588030
push esi
push dword [ebp - 0x5e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4eac3d
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.00426e7b
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.0040411c
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x44c]
call fcn.00426e9d
jmp 0x4eac4e
and dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x4eac49
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.0040411c
push esi
add ebx, 0x7c
push ebx
call fcn.0040411c
mov dword [ebp - 4], 0xd
push str.HKLMSOFTWAREMicrosoftWindowsCurrentVersion
lea esi, [ebp - 0x43c]
call fcn.0040338f
mov byte [ebp - 4], 0xe
push 0x20119
mov edx, esi
lea ecx, [ebp - 0x5e0]
call fcn.00490b6c
pop ecx
mov byte [ebp - 4], 0x10
mov ecx, esi
call fcn.004033b1
mov byte [ebp - 4], 0x11
push str.ProgramFilesDir
lea esi, [ebp - 0x43c]
call fcn.0040338f
mov byte [ebp - 4], 0x12
mov eax, esi
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x5e0]
call fcn.004912e5
mov byte [ebp - 4], 0x13
lea ebx, [eax + 0x10]
mov eax, edi
call fcn.0040403a
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x68]
call fcn.0040997a
mov byte [ebp - 4], 0x11
mov ecx, esi
call fcn.004033b1
mov dword [ebp - 4], 0x10
mov byte [ebp - 4], 0x15
push str.ProgramFilesDir__x86_
lea esi, [ebp - 0x43c]
call fcn.0040338f
mov byte [ebp - 4], 0x16
mov eax, esi
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x5e0]
call fcn.004912e5
mov byte [ebp - 4], 0x17
lea ebx, [eax + 0x10]
mov edi, dword [ebp - 0x5ec]
lea eax, [edi + 0x7c]
call fcn.0040403a
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x68]
call fcn.0040997a
mov byte [ebp - 4], 0x15
mov ecx, esi
call fcn.004033b1
mov dword [ebp - 4], 0x10
jmp 0x4ead81
mov byte [ebp - 4], 0xd
lea esi, [ebp - 0x5e0]
call fcn.00490945
or dword [ebp - 4], 0xffffffff
jmp 0x4eada6
cmp dword [edi + 0x108], 6
jb 0x4eadb5
push edi
call fcn.004e9c81
lea eax, [ebp - 0x5e8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [0x5f8880]
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4eb017
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.00426e7b
mov dword [ebp - 4], 0x1a
cmp dword [ebp - 0x5dc], ebx
jne 0x4eae52
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.0040337c
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x5dc], ebx
cmp dword [ebp - 0x5d8], ebx
jbe 0x4eafed
mov eax, dword [ebp - 0x5f0]
cmp word [eax], bx
jne 0x4eafca
push dword [ebp - 0x5e0]
call fcn.0051848b
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 0x4eaecf
lea eax, [ebp - 0x5f4]
push dword [eax]
mov ecx, dword [ebp - 0x5e0]
lea eax, [ebp - 0x4b4]
call fcn.0040484e
mov byte [ebp - 4], 0x1c
mov ebx, eax
lea eax, [ebp - 0x43c]
call fcn.0040403a
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x4b4]
call fcn.004033b1
cmp dword [ebp - 0x42c], 0
je 0x4eafeb
mov eax, dword [ebp - 0x5f0]
add eax, 2
mov dword [ebp - 0x5e0], eax
push 0x24
call fcn.00515ac7
pop ecx
mov esi, eax
mov dword [ebp - 0x5f4], esi
mov byte [ebp - 4], 0x1d
test esi, esi
je 0x4eaf43
mov ecx, esi
call fcn.0040337c
mov byte [ebp - 4], 0x1d
jmp 0x4eaf45
xor esi, esi
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x5f4], esi
test esi, esi
je 0x4eafc8
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.00517e90
add esp, 0xc
cmp dword [ebp - 0x428], 8
mov ecx, dword [ebp - 0x43c]
jae 0x4eaf90
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.00516d7e
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0040411c
lea esi, [edi + 0x1e24]
lea ecx, [ebp - 0x5f4]
call fcn.004fbc84
xor ebx, ebx
add dword [ebp - 0x5f0], 2
inc dword [ebp - 0x5dc]
mov eax, dword [ebp - 0x5dc]
cmp eax, dword [ebp - 0x5d8]
jb 0x4eae85
jmp 0x4eafed
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.004033b1
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x44c]
call fcn.00426e9d
call fcn.004977d7
push 2
pop ecx
cmp eax, ecx
jl 0x4eb044
cmp eax, 3
jle 0x4eb03c
add eax, 0xfffffffb
cmp eax, 9
ja 0x4eb044
mov dword [edi + 0x1e18], 0x10
jmp 0x4eb04a
mov dword [edi + 0x1e18], ecx
jmp 0x4eb04a
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.004ee563
mov dword [ebp - 4], 0x1f
push str.ROOTCIMV2
lea eax, [ebp - 0x628]
push eax
mov ecx, str.Select_AllocatedBaseSize_From_Win32_PageFileUsage
call fcn.004ee655
cmp al, bl
jne 0x4eb0a6
push str.Failed_to_initialize_WMIHelper_inWin32_PageFileUsage::AllocatedBaseSize
xor ecx, ecx
inc ecx
call fcn.00492b4d
pop ecx
jmp 0x4eb0ed
mov dword [ebp - 0x5d4], ebx
push str.AllocatedBaseSize
lea edi, [ebp - 0x5d4]
lea ecx, [ebp - 0x628]
call fcn.004eeda2
cmp al, bl
je 0x4eb0d8
mov ecx, dword [ebp - 0x5d4]
mov eax, dword [ebp - 0x5ec]
add dword [eax + 0x1e20], ecx
lea ecx, [ebp - 0x628]
call fcn.004ef0d8
test al, al
jne 0x4eb0a6
mov edi, dword [ebp - 0x5ec]
lea eax, [ebp - 0x628]
call fcn.004ee602
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.00492b4d
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x628]
call fcn.004ee5ca
xor eax, eax
call fcn.00523d29
ret