Function at 0x4b1dae
Capabilities:
Get common file path

Disassembly:
push 0x96c
mov eax, 0x587144
call fcn.0054f23c
mov edi, ecx
lea ecx, [ebp - 0x848]
mov byte [edi], 1
call fcn.00401abe
xor esi, esi
mov dword [ebp - 4], esi
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push esi
push eax
call fcn.00543fe0
add esp, 0xc
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4b1e4b
cmp dword [ebp - 0x834], 8
mov eax, dword [ebp - 0x848]
mov dword [ebp - 0x838], esi
jae 0x4b1e21
lea eax, [ebp - 0x848]
xor ecx, ecx
mov word [eax], cx
push str.GetDriverFileInfo_cannot_get_the_system_dir
inc ecx
call fcn.00463ba1
pop ecx
xor bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x848]
call fcn.00401ad1
mov al, bl
call fcn.0054f2bf
ret
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x848]
push eax
call fcn.00404c23
push 0x5a372c
lea eax, [ebp - 0x848]
push eax
call fcn.0040bb42
lea eax, [ebp - 0x848]
push eax
lea esi, [ebp - 0x82c]
call fcn.00401a98
mov byte [ebp - 4], 1
lea eax, [ebp - 0x848]
push eax
lea esi, [ebp - 0x880]
call fcn.00401a98
mov byte [ebp - 4], 2
call fcn.004682da
add eax, 0xfffffffb
cmp eax, 7
ja case.default.0x4b1eaf
movzx eax, byte [eax + 0x4b2226]
jmp dword [eax*4 + 0x4b221e]
push str.NVCPL.DLL
lea eax, [ebp - 0x82c]
push eax
call fcn.0040bb42
push str.NVD3DUM.DLL
jmp 0x4b1efc
push str.NVCPL.DLL
lea eax, [ebp - 0x82c]
push eax
call fcn.0040bb42
push str.NVD3DUMX.DLL
jmp 0x4b1efc
push str.NVCPL.DLL
lea eax, [ebp - 0x82c]
push eax
call fcn.0040bb42
push str.NV4_DISP.DLL
lea eax, [ebp - 0x880]
push eax
call fcn.0040bb42
lea ecx, [ebp - 0x8b8]
call fcn.00401abe
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x89c]
call fcn.00401abe
mov byte [ebp - 4], 4
cmp dword [ebp - 0x818], 8
mov ecx, dword [ebp - 0x82c]
jae 0x4b1f3b
lea ecx, [ebp - 0x82c]
lea eax, [ebp - 0x8b8]
push eax
call fcn.004b1b15
pop ecx
test al, al
jne 0x4b1f5c
push str.Cannot_find_nvcpl.dll
push 2
pop ecx
mov byte [edi], al
call fcn.00463ba1
pop ecx
cmp dword [ebp - 0x86c], 8
mov ecx, dword [ebp - 0x880]
jae 0x4b1f71
lea ecx, [ebp - 0x880]
lea eax, [ebp - 0x89c]
push eax
call fcn.004b1b15
pop ecx
test al, al
jne 0x4b1f92
push str.Cannot_find_nv4_disp.dll
push 2
pop ecx
mov byte [edi], al
call fcn.00463ba1
pop ecx
lea eax, [ebp - 0x978]
push eax
call fcn.004044d0
mov edi, eax
mov byte [ebp - 4], 5
push edi
lea ecx, [ebp - 0x82c]
call fcn.0040c10b
pop ecx
mov esi, str._version_is
push esi
push edi
call fcn.0040511f
push edi
lea ecx, [ebp - 0x8b8]
call fcn.0040c10b
add esp, 0xc
lea eax, [ebp - 0x864]
push eax
mov eax, edi
call fcn.0040453a
mov byte [ebp - 4], 6
cmp dword [ebp - 0x850], 8
mov eax, dword [ebp - 0x864]
jae 0x4b1ff3
lea eax, [ebp - 0x864]
push eax
push 4
pop ebx
mov ecx, ebx
call fcn.00463ba1
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x864]
call fcn.00401ad1
mov byte [ebp - 4], bl
lea eax, [ebp - 0x978]
call fcn.00403cb2
lea eax, [ebp - 0x978]
push eax
call fcn.004044d0
mov edi, eax
mov byte [ebp - 4], 7
push edi
lea ecx, [ebp - 0x880]
call fcn.0040c10b
pop ecx
push esi
push edi
call fcn.0040511f
push edi
lea ecx, [ebp - 0x89c]
call fcn.0040c10b
add esp, 0xc
lea eax, [ebp - 0x864]
push eax
mov eax, edi
call fcn.0040453a
mov byte [ebp - 4], 8
cmp dword [ebp - 0x850], 8
mov eax, dword [ebp - 0x864]
jae 0x4b2078
lea eax, [ebp - 0x864]
push eax
mov ecx, ebx
call fcn.00463ba1
pop ecx
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x864]
call fcn.00401ad1
mov byte [ebp - 4], 4
lea eax, [ebp - 0x978]
call fcn.00403cb2
cmp dword [ebp - 0x888], 8
mov eax, dword [ebp - 0x89c]
jae 0x4b20b4
lea eax, [ebp - 0x89c]
mov edi, dword [ebp - 0x88c]
push eax
mov eax, dword [ebp - 0x8a8]
lea ecx, [ebp - 0x8b8]
call fcn.0040c393
test eax, eax
jne 0x4b2121
push str.nvcpl.dll_and_nv4_disp.dll_match
push 2
pop ecx
call fcn.00463ba1
pop ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x89c]
call fcn.00401ad1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8b8]
call fcn.00401ad1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x880]
call fcn.00401ad1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x82c]
call fcn.00401ad1
mov bl, 1
jmp 0x4b1e34
push str.SOFTWARENVIDIA_CorporationGlobal
lea esi, [ebp - 0x8d4]
call fcn.004041a9
mov byte [ebp - 4], 9
push 0x5a372c
mov eax, esi
push eax
call fcn.0040bb42
push str.NVTweak
mov eax, esi
push eax
call fcn.0040bb42
cmp dword [ebp - 0x8c0], 8
mov eax, dword [ebp - 0x8d4]
jae 0x4b2160
mov eax, esi
lea ecx, [ebp - 0x8dc]
push ecx
push 0x20019
xor esi, esi
push esi
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x8d8], esi
mov dword [ebp - 0x8e0], ebx
cmp eax, esi
jne 0x4b21c2
lea eax, [ebp - 0x8e0]
push eax
lea eax, [ebp - 0x8d8]
push eax
push esi
push esi
push str.DisableVersionCheck
push dword [ebp - 0x8dc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
je 0x4b21b6
mov dword [ebp - 0x8d8], esi
push dword [ebp - 0x8dc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x8d8], esi
setne bl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8d4]
call fcn.00401ad1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x89c]
call fcn.00401ad1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x8b8]
call fcn.00401ad1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x880]
call fcn.00401ad1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x82c]
call fcn.00401ad1
jmp 0x4b1e34