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

Disassembly:
push 0x444
mov eax, 0x49bea4
call fcn.0045208a
mov edi, ecx
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x414], edi
push str.Enter_updtShimAPIClass::DetectOSInfo
push 3
call fcn.00401235
pop ecx
pop ecx
call fcn.00402818
push eax
lea ecx, [edi + 0x88]
call fcn.004016ad
call fcn.004024ca
push eax
lea ecx, [edi + 0xb8]
call fcn.004016ad
lea eax, [edi + 0xa0]
push eax
call fcn.0040f682
test al, al
jne 0x40fa34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0xb0]
call fcn.00402a5a
mov edi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push str.GetOSString_failed:
push edi
call fcn.0040508d
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.00403c13
lea eax, [ebp - 0x238]
push eax
mov ecx, edi
call fcn.00402a43
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x238]
call fcn.00402109
push eax
push 2
call fcn.00401235
pop ecx
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x238]
call fcn.004020b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00402479
mov edi, dword [ebp - 0x408]
jmp 0x40fa36
xor ebx, ebx
mov esi, 0x114
push esi
push ebx
lea eax, [ebp - 0x400]
push eax
call fcn.0046a220
add esp, 0xc
mov dword [ebp - 0x400], esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40fae1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0xb0]
call fcn.00402a5a
mov edi, eax
mov dword [ebp - 4], 2
push str.GetVersionEx_failed:
push edi
call fcn.0040508d
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.00403c13
lea eax, [ebp - 0x238]
push eax
mov ecx, edi
call fcn.00402a43
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x238]
call fcn.00402109
push eax
push 2
call fcn.00401235
pop ecx
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.004020b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00402479
push 2
pop eax
jmp 0x41050b
mov eax, dword [ebp - 0x3fc]
mov dword [edi + 0xe8], eax
mov eax, dword [ebp - 0x3f8]
mov dword [edi + 0xec], eax
mov eax, dword [ebp - 0x3f4]
mov dword [edi + 0xf0], eax
mov eax, dword [ebp - 0x3f0]
mov dword [edi + 0xf4], eax
lea eax, [ebp - 0x3ec]
push eax
lea ecx, [edi + 0x120]
call fcn.004016ad
push 0x4e
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [edi + 0x19d8], eax
push 0x4f
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [edi + 0x19dc], eax
lea eax, [edi + 0x19ac]
push eax
call fcn.0040f5f8
test al, al
jne 0x40fbcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0xb0]
call fcn.00402a5a
mov edi, eax
mov dword [ebp - 4], 4
push str.GetSHIMLink_failed
push edi
call fcn.0040508d
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.00403c13
lea eax, [ebp - 0x238]
push eax
mov ecx, edi
call fcn.00402a43
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x238]
call fcn.00402109
push eax
push 2
call fcn.00401235
pop ecx
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x238]
call fcn.004020b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00402479
mov edi, dword [ebp - 0x408]
cmp dword [edi + 0xe8], 5
ja 0x40fbdf
jne 0x40fc46
cmp dword [edi + 0xec], 1
jb 0x40fc46
mov esi, 0x11c
push esi
push ebx
lea eax, [ebp - 0x138]
push eax
call fcn.0046a220
add esp, 0xc
mov dword [ebp - 0x138], esi
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40fc1c
push str.GetVersionEx_Failed
push 1
call fcn.00401235
pop ecx
pop ecx
jmp 0x40fc46
mov ax, word [ebp - 0x24]
mov word [edi + 0xf8], ax
mov ax, word [ebp - 0x22]
mov word [edi + 0xfa], ax
mov ax, word [ebp - 0x20]
mov word [edi + 0xfc], ax
mov al, byte [ebp - 0x1e]
mov byte [edi + 0xfe], al
push 0x40
pop esi
push esi
push ebx
lea eax, [ebp - 0x290]
push eax
call fcn.0046a220
add esp, 0xc
mov dword [ebp - 0x290], esi
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
jne 0x40fced
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0xb0]
call fcn.00402a5a
mov edi, eax
mov dword [ebp - 4], 6
push str.GlobalMemoryStatusEx_Failed_ec
push edi
call fcn.0040508d
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.00403c13
lea eax, [ebp - 0x238]
push eax
mov ecx, edi
call fcn.00402a43
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x238]
call fcn.00402109
push eax
push 1
call fcn.00401235
pop ecx
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x238]
call fcn.004020b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00402479
mov edi, dword [ebp - 0x408]
mov eax, dword [ebp - 0x288]
mov ecx, dword [ebp - 0x284]
shrd eax, ecx, 0xa
shr ecx, 0xa
mov dword [edi + 0x100], eax
mov dword [edi + 0x104], ecx
mov eax, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x27c]
shrd eax, ecx, 0xa
shr ecx, 0xa
mov dword [edi + 0x108], eax
mov dword [edi + 0x10c], ecx
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x264]
shrd eax, ecx, 0xa
shr ecx, 0xa
mov dword [edi + 0x110], eax
mov dword [edi + 0x114], ecx
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0x25c]
shrd eax, ecx, 0xa
shr ecx, 0xa
mov dword [edi + 0x118], eax
mov dword [edi + 0x11c], ecx
mov dword [ebp - 0x41c], ebx
push str.NotifiusUILanguage
lea ecx, [ebp - 0x250]
call fcn.00401688
mov dword [ebp - 4], 8
push str.HKLMSOFTWARENVIDIA_CorporationGlobalNVUpdatus
lea ecx, [ebp - 0x238]
call fcn.00401688
mov byte [ebp - 4], 9
push 0x200
lea eax, [ebp - 0x41c]
push eax
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x238]
call fcn.00439faa
pop ecx
pop ecx
mov bl, al
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x238]
call fcn.004020b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.004020b0
test bl, bl
je 0x40fe66
lea ecx, [ebp - 0xb0]
call fcn.00402a5a
mov esi, eax
mov dword [ebp - 4], 0xa
push str.Overriding_Language_value_to__d
push esi
call fcn.0040508d
pop ecx
pop ecx
mov edi, dword [ebp - 0x41c]
push edi
mov ecx, esi
call fcn.00403c13
lea eax, [ebp - 0x238]
push eax
mov ecx, esi
call fcn.00402a43
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x238]
call fcn.00402109
push eax
xor ebx, ebx
push ebx
call fcn.00401235
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x238]
call fcn.004020b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.00402479
mov eax, dword [ebp - 0x408]
mov dword [eax + 0x150], edi
mov edi, eax
jmp 0x40fe77
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [edi + 0x150], eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx eax, ax
mov dword [edi + 0x154], eax
lea edx, [edi + 0x158]
mov ecx, dword [edi + 0x150]
call fcn.0040f59b
lea edx, [edi + 0x170]
mov ecx, dword [edi + 0x154]
call fcn.0040f59b
push 0x4b4498
lea ecx, [edi + 0x138]
call fcn.004016ad
mov ecx, edi
call fcn.0040e783
test al, al
jne 0x40fed1
push str.GetDXVersion_Failed
push 4
call fcn.00401235
pop ecx
pop ecx
mov ecx, edi
call fcn.0040eaf3
test al, al
jne 0x40fee2
mov byte [edi + 0x1a4], bl
push 0x208
push ebx
lea eax, [ebp - 0x220]
push eax
call fcn.0046a220
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edx, 0x4b4498
lea ecx, [ebp - 0x220]
test eax, eax
cmovne edx, ecx
push edx
lea ecx, [edi + 0x40]
call fcn.004016ad
push 0x4b4498
lea ecx, [edi + 0x28]
call fcn.004016ad
lea eax, [ebp - 0x410]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftInternet_Explorer
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fffc
mov dword [ebp - 0x40c], ebx
lea eax, [ebp - 0x40c]
push eax
push ebx
push ebx
push ebx
push str.Version
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ffe8
mov word [ebp - 0x402], ax
push ecx
lea eax, [ebp - 0x402]
push eax
mov eax, dword [ebp - 0x40c]
shr eax, 1
inc eax
push eax
lea ecx, [ebp - 0x244]
call fcn.00407662
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x244]
call fcn.00401ffa
mov esi, eax
lea eax, [ebp - 0x40c]
push eax
push dword [esi]
push ebx
push ebx
push str.Version
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esi]
lea ecx, [edi + 0x28]
call fcn.004016ad
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0040765d
jmp 0x40fff0
lea ecx, [edi + 0x28]
call fcn.0040a342
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [edi + 0x58]
push 0x4b4498
call fcn.004016ad
lea esi, [edi + 0x70]
mov dword [ebp - 0x418], esi
push 0x4b4498
mov ecx, esi
call fcn.004016ad
mov dword [ebp - 4], 0xd
push str.HKLMSOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x238]
call fcn.00401688
mov byte [ebp - 4], 0xe
push 0x20119
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x404]
call fcn.0043a180
pop ecx
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x238]
call fcn.004020b0
mov byte [ebp - 4], 0x11
push str.ProgramFilesDir
lea ecx, [ebp - 0x238]
call fcn.00401688
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x404]
call fcn.0043a7a9
mov byte [ebp - 4], 0x13
add eax, 0x10
push eax
lea ecx, [edi + 0x58]
call fcn.0040165f
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2e8]
call fcn.0040f8fe
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x238]
call fcn.004020b0
mov dword [ebp - 4], 0x10
jmp 0x4100e8
mov byte [ebp - 4], 0x15
push str.ProgramFilesDir__x86_
lea ecx, [ebp - 0x238]
call fcn.00401688
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x404]
call fcn.0043a7a9
mov byte [ebp - 4], 0x17
add eax, 0x10
push eax
mov ecx, esi
call fcn.0040165f
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2e8]
call fcn.0040f8fe
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x238]
call fcn.004020b0
mov dword [ebp - 4], 0x10
jmp 0x41016a
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x404]
call fcn.0043a144
or dword [ebp - 4], 0xffffffff
jmp 0x410197
cmp dword [edi + 0xe8], 6
jb 0x4101a7
mov ecx, edi
call fcn.0040ef88
lea eax, [ebp - 0x410]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_Management
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4103f4
mov dword [ebp - 0x40c], ebx
lea eax, [ebp - 0x40c]
push eax
push ebx
push ebx
push ebx
push str.PagingFiles
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
xor eax, eax
mov word [ebp - 0x402], ax
push ecx
lea eax, [ebp - 0x402]
push eax
mov ecx, dword [ebp - 0x40c]
shr ecx, 1
inc ecx
push ecx
lea ecx, [ebp - 0x244]
call fcn.00407662
mov dword [ebp - 4], 0x1a
test esi, esi
jne 0x410247
lea ecx, [ebp - 0x244]
call fcn.00401ffa
lea ecx, [ebp - 0x40c]
push ecx
push dword [eax]
push ebx
push ebx
push str.PagingFiles
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x244]
call fcn.00401ffa
mov esi, dword [eax]
mov dword [ebp - 0x404], esi
mov dword [ebp - 0x414], esi
lea ecx, [ebp - 0x238]
call fcn.00401a80
mov byte [ebp - 4], 0x1b
mov eax, ebx
mov dword [ebp - 0x41c], ebx
cmp dword [ebp - 0x40c], 0
jbe 0x4103ca
cmp word [esi], bx
jne 0x4103ae
push dword [ebp - 0x414]
call fcn.0046eca3
pop ecx
mov edx, dword [ebp - 0x414]
mov ecx, edx
sub ecx, esi
sar ecx, 1
inc ecx
cmp eax, ecx
cmovb ecx, eax
push ecx
push edx
lea ecx, [ebp - 0x2a8]
call fcn.00406c4c
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x238]
call fcn.0040165f
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x2a8]
call fcn.004020b0
lea ecx, [ebp - 0x238]
call fcn.004063ed
test al, al
jne 0x4103ca
lea eax, [esi + 2]
mov dword [ebp - 0x414], eax
push 0x20
call fcn.00451ccc
pop ecx
mov esi, eax
mov dword [ebp - 0x418], esi
mov ecx, esi
call fcn.00401a80
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x420], esi
lea edi, [esi + 0x18]
mov dword [edi], ebx
add esi, 0x1c
mov dword [esi], ebx
push 0x200
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.0046a220
add esp, 0xc
push esi
push edi
lea eax, [ebp - 0x218]
push eax
push str._s__d__d
lea ecx, [ebp - 0x238]
call fcn.00402109
push eax
call fcn.0040d4bf
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x418]
call fcn.004016ad
mov edi, dword [ebp - 0x408]
lea esi, [edi + 0x19e8]
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
je 0x410393
push eax
push 4
call fcn.00402248
pop ecx
pop ecx
mov ecx, dword [ebp - 0x418]
mov dword [eax], ecx
add dword [esi + 4], 4
jmp 0x4103a2
lea ecx, [ebp - 0x420]
push ecx
push eax
mov ecx, esi
call fcn.0041443e
mov eax, dword [ebp - 0x41c]
mov esi, dword [ebp - 0x404]
add esi, 2
mov dword [ebp - 0x404], esi
inc eax
mov dword [ebp - 0x41c], eax
cmp eax, dword [ebp - 0x40c]
jb 0x410284
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x238]
call fcn.004020b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0040765d
mov ecx, dword [edi + 0x100]
mov eax, dword [edi + 0x104]
shrd ecx, eax, 0xa
shr eax, 0xa
mov eax, ecx
shr eax, 1
add eax, ecx
mov dword [edi + 0x19e0], eax
lea ecx, [ebp - 0x450]
call fcn.0042154b
mov dword [ebp - 4], 0x1e
push str.Select_AllocatedBaseSize_From_Win32_PageFileUsage
push str.ROOTCIMV2
lea ecx, [ebp - 0x450]
call fcn.00421695
test al, al
jne 0x41044e
push str.Failed_to_initialize_WMIHelper_inWin32_PageFileUsage::AllocatedBaseSize
push 1
call fcn.00401235
pop ecx
pop ecx
jmp 0x41048b
mov dword [ebp - 0x418], ebx
push ecx
lea eax, [ebp - 0x418]
push eax
push str.AllocatedBaseSize
lea ecx, [ebp - 0x450]
call fcn.00421d09
test al, al
je 0x41047c
mov eax, dword [ebp - 0x418]
add dword [edi + 0x19e4], eax
lea ecx, [ebp - 0x450]
call fcn.00421f1e
test al, al
jne 0x41044e
lea ecx, [ebp - 0x450]
call fcn.00421618
push 0x43
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [edi + 0x19c4], eax
push 0x2001
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [edi + 0x19c8], eax
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [edi + 0x19cc], eax
push 0x2000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [edi + 0x19d0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [edi + 0x19d4], eax
push str.Exit_updtShimAPIClass::DetectOSInfo
push 3
call fcn.00401235
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.004215c2
xor eax, eax
call fcn.00451fd6
ret