Function at 0x41498f
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push 0x954
mov eax, 0x47980f
call fcn.00450819
mov edi, ecx
lea ecx, [ebp - 0x858]
mov byte [edi], 1
call fcn.00407270
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.00452e20
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4149fc
lea ecx, [ebp - 0x858]
call fcn.0040cfd6
push str.GetDriverFileInfo_cannot_get_the_system_dir
push 1
call fcn.00406d9c
pop ecx
pop ecx
jmp 0x414da0
cmp word [ebp - 0x810], bx
jne 0x414a09
mov eax, ebx
jmp 0x414a16
lea eax, [ebp - 0x810]
push eax
call fcn.00459e88
pop ecx
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x858]
call fcn.00407411
mov esi, 0x4914c0
push esi
call fcn.00459e88
pop ecx
push eax
push esi
lea ecx, [ebp - 0x858]
call fcn.0040751f
lea eax, [ebp - 0x858]
push eax
lea ecx, [ebp - 0x840]
call fcn.00407283
mov byte [ebp - 4], 1
lea eax, [ebp - 0x858]
push eax
lea ecx, [ebp - 0x828]
call fcn.00407283
mov byte [ebp - 4], 2
call fcn.00408892
add eax, 0xfffffffb
cmp eax, 7
ja case.default.0x414a82
movzx eax, byte [eax + 0x414dbf]
jmp dword [eax*4 + 0x414db7]
mov esi, str.NVCPL.DLL
push esi
call fcn.00459e88
pop ecx
push eax
push esi
lea ecx, [ebp - 0x840]
call fcn.0040751f
mov esi, str.NVD3DUM.DLL
jmp 0x414ae7
mov esi, str.NVCPL.DLL
push esi
call fcn.00459e88
pop ecx
push eax
push esi
lea ecx, [ebp - 0x840]
call fcn.0040751f
mov esi, str.NVD3DUMX.DLL
jmp 0x414ae7
mov esi, str.NVCPL.DLL
push esi
call fcn.00459e88
pop ecx
push eax
push esi
lea ecx, [ebp - 0x840]
call fcn.0040751f
mov esi, str.NV4_DISP.DLL
push esi
call fcn.00459e88
pop ecx
push eax
push esi
lea ecx, [ebp - 0x828]
call fcn.0040751f
lea ecx, [ebp - 0x8b8]
call fcn.00407270
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8a0]
call fcn.00407270
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x840]
call fcn.004071ba
lea edx, [ebp - 0x8b8]
mov ecx, eax
call fcn.00414731
test al, al
jne 0x414b45
push str.Cannot_find_nvcpl.dll
push 2
mov byte [edi], bl
call fcn.00406d9c
pop ecx
pop ecx
lea ecx, [ebp - 0x828]
call fcn.004071ba
lea edx, [ebp - 0x8a0]
mov ecx, eax
call fcn.00414731
test al, al
jne 0x414b71
push str.Cannot_find_nv4_disp.dll
push 2
mov byte [edi], bl
call fcn.00406d9c
pop ecx
pop ecx
lea ecx, [ebp - 0x960]
call fcn.00408d76
mov esi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x840]
push eax
push esi
call fcn.0040bb75
mov edi, str._version_is
push edi
push esi
call fcn.0040b812
lea eax, [ebp - 0x8b8]
push eax
push esi
call fcn.0040bb75
add esp, 0x18
lea eax, [ebp - 0x870]
mov ecx, esi
push eax
call fcn.00408d5d
mov byte [ebp - 4], 6
lea eax, [ebp - 0x870]
push eax
push 4
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x870]
call fcn.00407241
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x960]
call fcn.0040878b
lea ecx, [ebp - 0x960]
call fcn.00408d76
mov esi, eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x828]
push eax
push esi
call fcn.0040bb75
push edi
push esi
call fcn.0040b812
lea eax, [ebp - 0x8a0]
push eax
push esi
call fcn.0040bb75
add esp, 0x18
lea eax, [ebp - 0x870]
mov ecx, esi
push eax
call fcn.00408d5d
mov byte [ebp - 4], 8
lea eax, [ebp - 0x870]
push eax
push 4
call fcn.00406d81
pop ecx
pop ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x870]
call fcn.00407241
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x960]
call fcn.0040878b
lea edx, [ebp - 0x8a0]
lea ecx, [ebp - 0x8b8]
call fcn.00417dbe
test al, al
je 0x414c8a
push str.nvcpl.dll_and_nv4_disp.dll_match
push 2
call fcn.00406d9c
pop ecx
pop ecx
mov bl, 1
jmp 0x414d64
push str.SOFTWARENVIDIA_CorporationGlobal
lea ecx, [ebp - 0x888]
call fcn.0040724b
mov byte [ebp - 4], 9
mov esi, 0x4914c0
push esi
call fcn.00459e88
pop ecx
push eax
push esi
lea ecx, [ebp - 0x888]
call fcn.0040751f
mov esi, str.NVTweak
push esi
call fcn.00459e88
pop ecx
push eax
push esi
lea ecx, [ebp - 0x888]
call fcn.0040751f
lea eax, [ebp - 0x8c0]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x888]
call fcn.004071ba
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x8c4], 4
mov ecx, ebx
mov dword [ebp - 0x8bc], ecx
test eax, eax
jne 0x414d50
lea eax, [ebp - 0x8c4]
push eax
lea eax, [ebp - 0x8bc]
push eax
push ebx
push ebx
push str.DisableVersionCheck
push dword [ebp - 0x8c0]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x8bc]
xor edx, edx
push dword [ebp - 0x8c0]
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x8bc], ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x8bc]
test ecx, ecx
setne bl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x888]
call fcn.00407241
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x8a0]
call fcn.00407241
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8b8]
call fcn.00407241
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x828]
call fcn.00407241
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x840]
call fcn.00407241
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x858]
call fcn.00407241
mov al, bl
call fcn.004507c3
ret