Function at 0x459090
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4849e2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x138
mov eax, dword [esp + 0x148]
push ebx
push ebp
push esi
push edi
push eax
lea ecx, [esp + 0x14]
xor ebx, ebx
xor edi, edi
call fcn.0042ee40
push 0x497c10
lea ecx, [esp + 0x14]
mov dword [esp + 0x154], ebx
call fcn.0042f4d0
or ebp, 0xffffffff
cmp eax, ebp
jne 0x4591aa
lea ecx, [esp + 0x40]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov al, byte [esp + eax + 0x3f]
cmp al, 0x5c
je 0x459174
cmp al, 0x2f
je 0x459174
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0x496478
push ecx
call fcn.0042f150
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 1
call fcn.0042eef0
lea ecx, [esp + 0x18]
mov byte [esp + 0x150], bl
call fcn.0042edb0
lea edx, [esp + 0x10]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0042f150
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 2
call fcn.0042eef0
mov byte [esp + 0x150], bl
lea ecx, [esp + 0x18]
jmp 0x4591a5
lea edx, [esp + 0x10]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0042f150
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 3
call fcn.0042eef0
mov byte [esp + 0x150], bl
lea ecx, [esp + 0x18]
call fcn.0042edb0
push ebx
push ebx
xor edx, edx
push 3
push ebx
mov dword [esp + 0x38], edx
push 1
push 0x80000000
lea ecx, [esp + 0x28]
mov dword [esp + 0x44], edx
call fcn.004303b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebp
je 0x459290
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x45927d
lea ecx, [esp + 0x30]
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x45927d
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x18]
and edi, 0xffff
call fcn.0042ec10
mov eax, dword [esp + 0x36]
mov ecx, dword [esp + 0x32]
mov edx, dword [esp + 0x30]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esp + 0x24]
push str._d__d__d
push eax
mov byte [esp + 0x164], 4
call fcn.0042fcf0
add esp, 0x14
lea ecx, [esp + 0x18]
call fcn.004303b0
push eax
push str.DriverDate
push str.3DSettings
call fcn.0043cbd0
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x150], bl
call fcn.0042edb0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x7d2
jge 0x459312
mov ecx, dword [esp + 0x15c]
push ecx
lea ecx, [esp + 0x24]
call fcn.0042ee40
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 5
call fcn.0042f5b0
push str.nvidia
lea ecx, [esp + 0x24]
call fcn.0042f900
cmp eax, ebp
je 0x4592d1
mov byte [esp + 0x150], bl
lea ecx, [esp + 0x20]
jmp 0x45930d
push str.radeon
lea ecx, [esp + 0x24]
call fcn.0042f900
cmp eax, ebp
je 0x4592f0
mov byte [esp + 0x150], bl
lea ecx, [esp + 0x20]
jmp 0x45930d
push 0x497bf0
lea ecx, [esp + 0x24]
call fcn.0042f900
cmp eax, ebp
mov byte [esp + 0x150], bl
lea ecx, [esp + 0x20]
je 0x459326
call fcn.0042edb0
lea ecx, [esp + 0x10]
mov dword [esp + 0x150], ebp
call fcn.0042edb0
mov al, 1
jmp 0x45933d
call fcn.0042edb0
lea ecx, [esp + 0x10]
mov dword [esp + 0x150], ebp
call fcn.0042edb0
xor al, al
mov ecx, dword [esp + 0x148]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x144
ret 8