Function at 0x4ea68e
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, 0x56d517
call fcn.00523a34
mov ebx, ecx
mov dword [ebp - 0x5ec], ebx
push str.Enter_updtShimAPIClass::DetectOSInfo
push 3
pop ecx
call fcn.00492cc7
pop ecx
call fcn.00497fee
push eax
lea eax, [ebx + 0x98]
push eax
call fcn.00404104
call fcn.00497c30
push eax
lea eax, [ebx + 0xd0]
push eax
call fcn.00404104
lea eax, [ebx + 0xb4]
push eax
call fcn.004ea3e0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
jne 0x4ea773
call esi
mov dword [ebp - 0x5d4], eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00403689
mov edi, eax
and dword [ebp - 4], 0
push str.GetOSString_failed:
push edi
call fcn.00405d65
pop ecx
pop ecx
push dword [ebp - 0x5d4]
push edi
call fcn.0041058a
lea eax, [ebp - 0x43c]
push eax
mov eax, edi
call fcn.004036f3
mov byte [ebp - 4], 1
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4ea74b
lea eax, [ebp - 0x43c]
push eax
push 2
pop ecx
call fcn.00492cc7
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x43c]
call fcn.00403372
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.0040262a
mov edi, 0x114
push edi
push 0
lea eax, [ebp - 0x5d0]
push eax
call fcn.00517bf0
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 0x4ea826
call esi
mov ebx, eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00403689
mov esi, eax
push 2
pop edi
mov dword [ebp - 4], edi
push str.GetVersionEx_failed:
push esi
call fcn.00405d65
pop ecx
pop ecx
push ebx
push esi
call fcn.0041058a
lea eax, [ebp - 0x43c]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 3
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4ea7f8
lea eax, [ebp - 0x43c]
push eax
mov ecx, edi
call fcn.00492cc7
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x43c]
call fcn.00403372
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.0040262a
mov eax, edi
jmp 0x4eb276
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.00404104
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.004ea35e
test al, al
jne 0x4ea91b
call esi
mov dword [ebp - 0x5d4], eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00403689
mov edi, eax
mov dword [ebp - 4], 4
push str.GetSHIMLink_failed
push edi
call fcn.00405d65
pop ecx
pop ecx
push dword [ebp - 0x5d4]
push edi
call fcn.0041058a
lea eax, [ebp - 0x43c]
push eax
mov eax, edi
call fcn.004036f3
mov byte [ebp - 4], 5
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4ea8f3
lea eax, [ebp - 0x43c]
push eax
push 2
pop ecx
call fcn.00492cc7
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x43c]
call fcn.00403372
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.0040262a
mov eax, dword [ebx + 0x108]
cmp eax, 5
ja 0x4ea931
jne 0x4ea999
cmp dword [ebx + 0x10c], 1
jb 0x4ea999
mov edi, 0x11c
push edi
push 0
lea eax, [ebp - 0x138]
push eax
call fcn.00517bf0
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 0x4ea96f
push str.GetVersionEx_Failed
xor ecx, ecx
inc ecx
call fcn.00492cc7
pop ecx
jmp 0x4ea999
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.00517bf0
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 0x4eaa41
call esi
mov edi, eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00403689
mov esi, eax
mov dword [ebp - 4], 6
push str.GlobalMemoryStatusEx_Failed_ec
push esi
call fcn.00405d65
pop ecx
pop ecx
push edi
push esi
call fcn.0041058a
lea eax, [ebp - 0x43c]
push eax
mov eax, esi
call fcn.004036f3
mov byte [ebp - 4], 7
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4eaa19
lea eax, [ebp - 0x43c]
push eax
xor ecx, ecx
inc ecx
call fcn.00492cc7
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x43c]
call fcn.00403372
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.0040262a
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.00403350
mov dword [ebp - 4], 8
push str.HKLMSOFTWARENVIDIA_CorporationGlobalNVUpdatus
lea esi, [ebp - 0x43c]
call fcn.00403350
mov byte [ebp - 4], 9
push 0x200
lea eax, [ebp - 0x5dc]
push eax
lea ecx, [ebp - 0x458]
mov edx, esi
call fcn.0049076c
pop ecx
pop ecx
mov byte [ebp - 0x5e1], al
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.00403372
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x458]
call fcn.00403372
cmp byte [ebp - 0x5e1], 0
je 0x4eabbc
lea eax, [ebp - 0xb0]
push eax
call fcn.00403689
mov edi, eax
mov dword [ebp - 4], 0xa
push str.Overriding_Language_value_to__d
push edi
call fcn.00405d65
pop ecx
pop ecx
mov esi, dword [ebp - 0x5dc]
push esi
push edi
call fcn.0041058a
lea eax, [ebp - 0x43c]
push eax
mov eax, edi
call fcn.004036f3
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x428], 8
mov eax, dword [ebp - 0x43c]
jae 0x4eab8d
lea eax, [ebp - 0x43c]
push eax
xor ecx, ecx
call fcn.00492cc7
pop ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x43c]
call fcn.00403372
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xb0]
call fcn.0040262a
mov dword [ebx + 0x178], esi
jmp 0x4eabcb
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.004ea2fe
pop ecx
lea esi, [ebx + 0x19c]
push dword [ebx + 0x17c]
call fcn.004ea2fe
mov dword [esp], str.Unknown
lea eax, [ebx + 0x15c]
push eax
call fcn.00404104
mov ecx, ebx
call fcn.004e97a9
test al, al
jne 0x4eac29
push str.GetDXVersion_Failed
push 4
pop ecx
call fcn.00492cc7
pop ecx
mov edi, ebx
call fcn.004e9ab3
test al, al
jne 0x4eac3a
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.00517bf0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x4eac7f
mov esi, str.Unknown
push esi
lea eax, [ebx + 0x44]
push eax
call fcn.00404104
jmp 0x4eac94
lea eax, [ebp - 0x420]
push eax
lea eax, [ebx + 0x44]
push eax
call fcn.00404104
mov esi, str.Unknown
lea edi, [ebx + 0x28]
push esi
push edi
call fcn.00404104
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 0x4ead72
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 0x4ead50
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.00426faa
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.00404104
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x44c]
call fcn.004e7046
jmp 0x4ead61
and dword [edi + 0x10], 0
cmp dword [edi + 0x14], 8
jb 0x4ead5c
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.00404104
push esi
add ebx, 0x7c
push ebx
call fcn.00404104
mov dword [ebp - 4], 0xd
push str.HKLMSOFTWAREMicrosoftWindowsCurrentVersion
lea esi, [ebp - 0x43c]
call fcn.00403350
mov byte [ebp - 4], 0xe
push 0x20119
mov edx, esi
lea ecx, [ebp - 0x5e0]
call fcn.00490d05
pop ecx
mov byte [ebp - 4], 0x10
mov ecx, esi
call fcn.00403372
mov byte [ebp - 4], 0x11
push str.ProgramFilesDir
lea esi, [ebp - 0x43c]
call fcn.00403350
mov byte [ebp - 4], 0x12
mov eax, esi
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x5e0]
call fcn.0049147e
mov byte [ebp - 4], 0x13
lea ebx, [eax + 0x10]
mov eax, edi
call fcn.00404022
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x68]
call fcn.004099b6
mov byte [ebp - 4], 0x11
mov ecx, esi
call fcn.00403372
mov dword [ebp - 4], 0x10
mov byte [ebp - 4], 0x15
push str.ProgramFilesDir__x86_
lea esi, [ebp - 0x43c]
call fcn.00403350
mov byte [ebp - 4], 0x16
mov eax, esi
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x5e0]
call fcn.0049147e
mov byte [ebp - 4], 0x17
lea ebx, [eax + 0x10]
mov edi, dword [ebp - 0x5ec]
lea eax, [edi + 0x7c]
call fcn.00404022
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x68]
call fcn.004099b6
mov byte [ebp - 4], 0x15
mov ecx, esi
call fcn.00403372
mov dword [ebp - 4], 0x10
jmp 0x4eae94
mov byte [ebp - 4], 0xd
lea esi, [ebp - 0x5e0]
call fcn.00490ade
or dword [ebp - 4], 0xffffffff
jmp 0x4eaeb9
cmp dword [edi + 0x108], 6
jb 0x4eaec8
push edi
call fcn.004e9d94
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 0x4eb12a
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.00426faa
mov dword [ebp - 4], 0x1a
cmp dword [ebp - 0x5dc], ebx
jne 0x4eaf65
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.0040333d
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x5dc], ebx
cmp dword [ebp - 0x5d8], ebx
jbe 0x4eb100
mov eax, dword [ebp - 0x5f0]
cmp word [eax], bx
jne 0x4eb0dd
push dword [ebp - 0x5e0]
call fcn.005181eb
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 0x4eafe2
lea eax, [ebp - 0x5f4]
push dword [eax]
mov ecx, dword [ebp - 0x5e0]
lea eax, [ebp - 0x4b4]
call fcn.00404836
mov byte [ebp - 4], 0x1c
mov ebx, eax
lea eax, [ebp - 0x43c]
call fcn.00404022
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x4b4]
call fcn.00403372
cmp dword [ebp - 0x42c], 0
je 0x4eb0fe
mov eax, dword [ebp - 0x5f0]
add eax, 2
mov dword [ebp - 0x5e0], eax
push 0x24
call fcn.00515827
pop ecx
mov esi, eax
mov dword [ebp - 0x5f4], esi
mov byte [ebp - 4], 0x1d
test esi, esi
je 0x4eb056
mov ecx, esi
call fcn.0040333d
mov byte [ebp - 4], 0x1d
jmp 0x4eb058
xor esi, esi
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x5f4], esi
test esi, esi
je 0x4eb0db
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.00517bf0
add esp, 0xc
cmp dword [ebp - 0x428], 8
mov ecx, dword [ebp - 0x43c]
jae 0x4eb0a3
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.00516add
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00404104
lea esi, [edi + 0x1e24]
lea ecx, [ebp - 0x5f4]
call fcn.004e6db9
xor ebx, ebx
add dword [ebp - 0x5f0], 2
inc dword [ebp - 0x5dc]
mov eax, dword [ebp - 0x5dc]
cmp eax, dword [ebp - 0x5d8]
jb 0x4eaf98
jmp 0x4eb100
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.00403372
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x44c]
call fcn.004e7046
call fcn.00497ce0
push 2
pop ecx
cmp eax, ecx
jl 0x4eb157
cmp eax, 3
jle 0x4eb14f
add eax, 0xfffffffb
cmp eax, 9
ja 0x4eb157
mov dword [edi + 0x1e18], 0x10
jmp 0x4eb15d
mov dword [edi + 0x1e18], ecx
jmp 0x4eb15d
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.004ee5ba
mov dword [ebp - 4], 0x1f
push str.ROOTCIMV2
lea eax, [ebp - 0x628]
push eax
mov ecx, str.Select_AllocatedBaseSize_From_Win32_PageFileUsage
call fcn.004ee6ac
cmp al, bl
jne 0x4eb1b9
push str.Failed_to_initialize_WMIHelper_inWin32_PageFileUsage::AllocatedBaseSize
xor ecx, ecx
inc ecx
call fcn.00492cc7
pop ecx
jmp 0x4eb200
mov dword [ebp - 0x5d4], ebx
push str.AllocatedBaseSize
lea edi, [ebp - 0x5d4]
lea ecx, [ebp - 0x628]
call fcn.004eedf9
cmp al, bl
je 0x4eb1eb
mov ecx, dword [ebp - 0x5d4]
mov eax, dword [ebp - 0x5ec]
add dword [eax + 0x1e20], ecx
lea ecx, [ebp - 0x628]
call fcn.004ef12f
test al, al
jne 0x4eb1b9
mov edi, dword [ebp - 0x5ec]
lea eax, [ebp - 0x628]
call fcn.004ee659
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.00492cc7
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x628]
call fcn.004ee621
xor eax, eax
call fcn.00523a90
ret