Function at 0x411c70
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, 0x479047
call fcn.00450887
mov edi, ecx
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x418], edi
push str.Enter_updtShimAPIClass::DetectOSInfo
push 3
call fcn.00406d9c
pop ecx
pop ecx
call fcn.00408b2a
push eax
lea ecx, [edi + 0x88]
call fcn.004073ea
call fcn.004087de
push eax
lea ecx, [edi + 0xb8]
call fcn.004073ea
lea eax, [edi + 0xa0]
push eax
call fcn.004119ac
test al, al
jne 0x411d43
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0xb0]
call fcn.00408d76
mov edi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push str.GetOSString_failed:
push edi
call fcn.0040b812
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0040a427
lea eax, [ebp - 0x238]
push eax
mov ecx, edi
call fcn.00408d5d
mov byte [ebp - 4], 1
lea eax, [ebp - 0x238]
push eax
push 2
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x238]
call fcn.00407241
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.0040878b
mov edi, dword [ebp - 0x408]
jmp 0x411d45
xor ebx, ebx
mov esi, 0x114
push esi
push ebx
lea eax, [ebp - 0x400]
push eax
call fcn.00452e20
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 0x411deb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0xb0]
call fcn.00408d76
mov edi, eax
mov dword [ebp - 4], 2
push str.GetVersionEx_failed:
push edi
call fcn.0040b812
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0040a427
lea eax, [ebp - 0x238]
push eax
mov ecx, edi
call fcn.00408d5d
mov byte [ebp - 4], 3
lea eax, [ebp - 0x238]
push eax
push 2
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x238]
call fcn.00407241
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.0040878b
push 2
pop eax
jmp 0x4128a6
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
cmp word [ebp - 0x3ec], 0
jne 0x411e29
mov eax, ebx
jmp 0x411e36
lea eax, [ebp - 0x3ec]
push eax
call fcn.00459e88
pop ecx
push eax
lea eax, [ebp - 0x3ec]
push eax
lea ecx, [edi + 0x120]
call fcn.00407411
push 0x4e
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
call esi
mov dword [edi + 0x19d8], eax
push 0x4f
call esi
mov dword [edi + 0x19dc], eax
lea eax, [edi + 0x19ac]
push eax
call fcn.0041190d
test al, al
jne 0x411eea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0xb0]
call fcn.00408d76
mov edi, eax
mov dword [ebp - 4], 4
push str.GetSHIMLink_failed
push edi
call fcn.0040b812
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0040a427
lea eax, [ebp - 0x238]
push eax
mov ecx, edi
call fcn.00408d5d
mov byte [ebp - 4], 5
lea eax, [ebp - 0x238]
push eax
push 2
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x238]
call fcn.00407241
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.0040878b
mov edi, dword [ebp - 0x408]
mov eax, dword [edi + 0xe8]
cmp eax, 5
ja 0x411f00
jne 0x411f67
cmp dword [edi + 0xec], 1
jb 0x411f67
mov esi, 0x11c
push esi
push ebx
lea eax, [ebp - 0x138]
push eax
call fcn.00452e20
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 0x411f3d
push str.GetVersionEx_Failed
push 1
call fcn.00406d9c
pop ecx
pop ecx
jmp 0x411f67
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.00452e20
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 0x412009
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0xb0]
call fcn.00408d76
mov edi, eax
mov dword [ebp - 4], 6
push str.GlobalMemoryStatusEx_Failed_ec
push edi
call fcn.0040b812
pop ecx
pop ecx
push esi
mov ecx, edi
call fcn.0040a427
lea eax, [ebp - 0x238]
push eax
mov ecx, edi
call fcn.00408d5d
mov byte [ebp - 4], 7
lea eax, [ebp - 0x238]
push eax
push 1
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x238]
call fcn.00407241
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.0040878b
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 - 0x404], ebx
push str.NotifiusUILanguage
lea ecx, [ebp - 0x250]
call fcn.0040724b
mov dword [ebp - 4], 8
push str.HKLMSOFTWARENVIDIA_CorporationGlobalNVUpdatus
lea ecx, [ebp - 0x238]
call fcn.0040724b
mov byte [ebp - 4], 9
push 0x200
lea eax, [ebp - 0x404]
push eax
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x238]
call fcn.0043a26b
pop ecx
pop ecx
mov bl, al
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x238]
call fcn.00407241
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x250]
call fcn.00407241
test bl, bl
je 0x41217d
lea ecx, [ebp - 0xb0]
call fcn.00408d76
mov esi, eax
mov dword [ebp - 4], 0xa
push str.Overriding_Language_value_to__d
push esi
call fcn.0040b812
pop ecx
pop ecx
mov edi, dword [ebp - 0x404]
push edi
mov ecx, esi
call fcn.0040a427
lea eax, [ebp - 0x238]
push eax
mov ecx, esi
call fcn.00408d5d
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x238]
push eax
xor ebx, ebx
push ebx
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x238]
call fcn.00407241
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb0]
call fcn.0040878b
mov eax, dword [ebp - 0x408]
mov dword [eax + 0x150], edi
mov edi, eax
jmp 0x41218e
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.004118a7
lea edx, [edi + 0x170]
mov ecx, dword [edi + 0x154]
call fcn.004118a7
mov esi, 0x48ee0c
push esi
call fcn.00459e88
pop ecx
push eax
push esi
lea ecx, [edi + 0x138]
call fcn.00407411
mov ecx, edi
call fcn.00410b9c
test al, al
jne 0x4121f1
push str.GetDXVersion_Failed
push 4
call fcn.00406d9c
pop ecx
pop ecx
mov ecx, edi
call fcn.00410eaa
test al, al
jne 0x412202
mov byte [edi + 0x1a4], bl
push 0x208
push ebx
lea eax, [ebp - 0x220]
push eax
call fcn.00452e20
add esp, 0xc
push 0x104
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x412238
push esi
call fcn.00459e88
pop ecx
push eax
push esi
jmp 0x41225b
cmp word [ebp - 0x220], 0
jne 0x412246
mov eax, ebx
jmp 0x412253
lea eax, [ebp - 0x220]
push eax
call fcn.00459e88
pop ecx
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [edi + 0x40]
call fcn.00407411
push esi
call fcn.00459e88
pop ecx
push eax
push 0x48ee0c
lea ecx, [edi + 0x28]
call fcn.00407411
lea eax, [ebp - 0x414]
push eax
push 0x20019
push ebx
push 0x492c30
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41235e
mov dword [ebp - 0x40c], ebx
lea eax, [ebp - 0x40c]
push eax
push ebx
push ebx
push ebx
push str.Version
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41234a
mov dword [ebp - 0x404], ebx
mov edx, dword [ebp - 0x40c]
shr edx, 1
inc edx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
lea ecx, [ebp - 0x404]
call fcn.0040732b
push eax
push edx
lea ecx, [ebp - 0x244]
call fcn.0040c92e
mov dword [ebp - 4], 0xc
lea ecx, [ebp - 0x244]
call fcn.0040732b
mov esi, eax
lea eax, [ebp - 0x40c]
push eax
push dword [esi]
push ebx
push ebx
push str.Version
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esi]
lea ecx, [edi + 0x28]
call fcn.004073ea
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0040c8fc
jmp 0x412352
lea ecx, [edi + 0x28]
call fcn.0040cfd6
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x48ee0c
call fcn.00459e88
pop ecx
push eax
push 0x48ee0c
lea ecx, [edi + 0x58]
call fcn.00407411
push 0x48ee0c
call fcn.00459e88
pop ecx
push eax
push 0x48ee0c
lea ecx, [edi + 0x70]
call fcn.00407411
mov dword [ebp - 4], 0xd
push str.HKLMSOFTWAREMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x238]
call fcn.0040724b
mov byte [ebp - 4], 0xe
push 0x20119
lea edx, [ebp - 0x238]
lea ecx, [ebp - 0x410]
call fcn.0043a43c
pop ecx
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0x238]
call fcn.00407241
mov byte [ebp - 4], 0x11
push str.ProgramFilesDir
lea ecx, [ebp - 0x238]
call fcn.0040724b
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x410]
call fcn.0043ab76
mov byte [ebp - 4], 0x13
add eax, 0x10
push eax
lea ecx, [edi + 0x58]
call fcn.0041508c
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2e8]
call fcn.00411c10
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x238]
call fcn.00407241
mov dword [ebp - 4], 0x10
jmp 0x412454
mov byte [ebp - 4], 0x15
push str.ProgramFilesDir__x86_
lea ecx, [ebp - 0x238]
call fcn.0040724b
mov byte [ebp - 4], 0x16
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x410]
call fcn.0043ab76
mov byte [ebp - 4], 0x17
add eax, 0x10
push eax
lea ecx, [edi + 0x70]
call fcn.0041508c
mov byte [ebp - 4], 0x16
lea ecx, [ebp - 0x2e8]
call fcn.00411c10
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x238]
call fcn.00407241
mov dword [ebp - 4], 0x10
jmp 0x4124d7
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x410]
call fcn.0043a400
or dword [ebp - 4], 0xffffffff
jmp 0x412504
cmp dword [edi + 0xe8], 6
jb 0x412514
mov ecx, edi
call fcn.0041133c
lea eax, [ebp - 0x414]
push eax
push 0x20019
push ebx
push dword [0x4b6f48]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x412799
mov dword [ebp - 0x40c], ebx
lea eax, [ebp - 0x40c]
push eax
push ebx
push ebx
push ebx
push str.PagingFiles
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov dword [ebp - 0x404], ebx
mov edx, dword [ebp - 0x40c]
shr edx, 1
inc edx
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], ebx
mov dword [ebp - 0x23c], ebx
lea ecx, [ebp - 0x404]
call fcn.0040732b
push eax
push edx
lea ecx, [ebp - 0x244]
call fcn.0040c92e
mov dword [ebp - 4], 0x1a
test esi, esi
jne 0x4125c9
lea ecx, [ebp - 0x244]
call fcn.0040732b
mov eax, dword [eax]
lea ecx, [ebp - 0x40c]
push ecx
push eax
push ebx
push ebx
push str.PagingFiles
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x244]
call fcn.0040732b
mov esi, dword [eax]
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x410], esi
lea ecx, [ebp - 0x238]
call fcn.00407270
mov byte [ebp - 4], 0x1b
mov eax, ebx
mov dword [ebp - 0x404], ebx
cmp dword [ebp - 0x40c], 0
jbe 0x41276f
cmp word [esi], bx
jne 0x412753
push dword [ebp - 0x410]
call fcn.00459e88
pop ecx
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x410]
sub ecx, esi
sar ecx, 1
inc ecx
mov dword [ebp - 0x420], ecx
lea edx, [ebp - 0x41c]
cmp eax, ecx
lea eax, [ebp - 0x420]
cmovae edx, eax
push dword [edx]
push dword [ebp - 0x410]
lea ecx, [ebp - 0x2a8]
call fcn.00408da5
mov byte [ebp - 4], 0x1c
push eax
lea ecx, [ebp - 0x238]
call fcn.0041508c
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x2a8]
call fcn.00407241
lea ecx, [ebp - 0x238]
call fcn.00408dcd
test al, al
mov edi, dword [ebp - 0x408]
jne 0x41276f
lea eax, [esi + 2]
mov dword [ebp - 0x410], eax
push 0x20
call fcn.0045029a
pop ecx
mov esi, eax
mov dword [ebp - 0x420], esi
mov ecx, esi
call fcn.00407270
mov byte [ebp - 4], 0x1b
mov dword [ebp - 0x41c], esi
test esi, esi
je 0x412747
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.00452e20
add esp, 0xc
push esi
push edi
lea eax, [ebp - 0x218]
push eax
push str._s__d__d
lea ecx, [ebp - 0x238]
call fcn.004071ba
push eax
call fcn.0040f671
add esp, 0x14
cmp word [ebp - 0x218], 0
jne 0x41270f
mov eax, ebx
jmp 0x41271c
lea eax, [ebp - 0x218]
push eax
call fcn.00459e88
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x420]
call fcn.00407411
lea eax, [ebp - 0x41c]
push eax
mov edi, dword [ebp - 0x408]
lea ecx, [edi + 0x19e8]
call fcn.00415006
mov eax, dword [ebp - 0x404]
mov esi, dword [ebp - 0x418]
add esi, 2
mov dword [ebp - 0x418], esi
inc eax
mov dword [ebp - 0x404], eax
cmp eax, dword [ebp - 0x40c]
jb 0x412606
push dword [ebp - 0x414]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x238]
call fcn.00407241
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.0040c8fc
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.00423b43
mov dword [ebp - 4], 0x1e
push str.Select_AllocatedBaseSize_From_Win32_PageFileUsage
push str.ROOTCIMV2
lea ecx, [ebp - 0x450]
call fcn.00423c58
test al, al
jne 0x4127f3
push str.Failed_to_initialize_WMIHelper_inWin32_PageFileUsage::AllocatedBaseSize
push 1
call fcn.00406d9c
pop ecx
pop ecx
jmp 0x412830
mov dword [ebp - 0x404], ebx
push ecx
lea eax, [ebp - 0x404]
push eax
push str.AllocatedBaseSize
lea ecx, [ebp - 0x450]
call fcn.0042430a
test al, al
je 0x412821
mov eax, dword [ebp - 0x404]
add dword [edi + 0x19e4], eax
lea ecx, [ebp - 0x450]
call fcn.0042450b
test al, al
jne 0x4127f3
lea ecx, [ebp - 0x450]
call fcn.00423c05
push 0x43
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
mov dword [edi + 0x19c4], eax
push 0x2001
call ebx
mov dword [edi + 0x19c8], eax
push 0x1000
call ebx
mov dword [edi + 0x19cc], eax
push 0x2000
call ebx
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.00406d9c
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x450]
call fcn.00423bad
xor eax, eax
call fcn.004507d4
ret