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

Disassembly:
push 0x954
mov eax, 0x49c656
call fcn.0045201c
mov edi, ecx
lea ecx, [ebp - 0x828]
mov byte [edi], 1
call fcn.00401a80
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.0046a220
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x400
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [ebp - 0x828]
test eax, eax
jne 0x4128e4
call fcn.0040a342
push str.GetDriverFileInfo_cannot_get_the_system_dir
push 1
call fcn.00401235
pop ecx
pop ecx
jmp 0x412c8a
lea eax, [ebp - 0x810]
push eax
call fcn.004016ad
push 0x4b6b54
lea ecx, [ebp - 0x828]
call fcn.00401638
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x888]
call fcn.00402a9b
mov byte [ebp - 4], 1
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x870]
call fcn.00402a9b
mov byte [ebp - 4], 2
call fcn.0040257a
add eax, 0xfffffffb
cmp eax, 7
ja case.default.0x412940
movzx eax, byte [eax + 0x412cab]
jmp dword [eax*4 + 0x412ca3]
mov esi, str.NVD3DUM.DLL
jmp 0x41295a
mov esi, str.NVD3DUMX.DLL
jmp 0x41295a
mov esi, str.NV4_DISP.DLL
push str.NVCPL.DLL
lea ecx, [ebp - 0x888]
call fcn.00401638
push esi
lea ecx, [ebp - 0x870]
call fcn.00401638
lea ecx, [ebp - 0x858]
call fcn.00401a80
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x840]
call fcn.00401a80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x888]
call fcn.00402109
lea edx, [ebp - 0x858]
mov ecx, eax
call fcn.0041260e
test al, al
jne 0x4129c0
push str.Cannot_find_nvcpl.dll
push 2
mov byte [edi], bl
call fcn.00401235
pop ecx
pop ecx
lea ecx, [ebp - 0x870]
call fcn.00402109
lea edx, [ebp - 0x840]
mov ecx, eax
call fcn.0041260e
test al, al
jne 0x4129ec
push str.Cannot_find_nv4_disp.dll
push 2
mov byte [edi], bl
call fcn.00401235
pop ecx
pop ecx
lea ecx, [ebp - 0x960]
call fcn.00402a5a
mov esi, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x888]
call fcn.00401634
push eax
lea ecx, [ebp - 0x888]
call fcn.00402109
push eax
push esi
call fcn.004057cf
add esp, 0xc
mov edi, str._version_is
push edi
push esi
call fcn.0040508d
pop ecx
pop ecx
lea ecx, [ebp - 0x858]
call fcn.00401634
push eax
lea ecx, [ebp - 0x858]
call fcn.00402109
push eax
push esi
call fcn.004057cf
add esp, 0xc
lea eax, [ebp - 0x8a0]
mov ecx, esi
push eax
call fcn.00402a43
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8a0]
call fcn.00402109
push eax
push 4
call fcn.00401235
pop ecx
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8a0]
call fcn.004020b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x960]
call fcn.00402479
lea ecx, [ebp - 0x960]
call fcn.00402a5a
mov esi, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x870]
call fcn.00401634
push eax
lea ecx, [ebp - 0x870]
call fcn.00402109
push eax
push esi
call fcn.004057cf
add esp, 0xc
push edi
push esi
call fcn.0040508d
pop ecx
pop ecx
lea ecx, [ebp - 0x840]
call fcn.00401634
push eax
lea ecx, [ebp - 0x840]
call fcn.00402109
push eax
push esi
call fcn.004057cf
add esp, 0xc
lea eax, [ebp - 0x8a0]
mov ecx, esi
push eax
call fcn.00402a43
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8a0]
call fcn.00402109
push eax
push 4
call fcn.00401235
pop ecx
pop ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x8a0]
call fcn.004020b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x960]
call fcn.00402479
lea ecx, [ebp - 0x858]
call fcn.00401ffa
lea ecx, [ebp - 0x840]
mov esi, eax
call fcn.00401ffa
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x412b55
mov edx, dword [eax]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x412b5f
mov ecx, dword [esi]
push dword [eax + 0x10]
push edx
mov edx, dword [esi + 0x10]
call fcn.0040b7d9
pop ecx
pop ecx
test al, al
je 0x412b86
push str.nvcpl.dll_and_nv4_disp.dll_match
push 2
call fcn.00401235
pop ecx
pop ecx
mov bl, 1
jmp 0x412c4e
push str.SOFTWARENVIDIA_CorporationGlobal
lea ecx, [ebp - 0x8b8]
call fcn.00401688
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x8b8]
push 0x4b6b54
call fcn.00401638
push str.NVTweak
lea ecx, [ebp - 0x8b8]
call fcn.00401638
lea eax, [ebp - 0x8c0]
push eax
push 0x20019
push ebx
lea ecx, [ebp - 0x8b8]
call fcn.00402109
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 0x412c3a
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 - 0x8b8]
call fcn.004020b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x840]
call fcn.004020b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x858]
call fcn.004020b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x870]
call fcn.004020b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x888]
call fcn.004020b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x828]
call fcn.004020b0
mov al, bl
call fcn.00451fc5
ret