Function at 0x4593d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x484d12
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.0042f030
push 0x497c10
lea ecx, [esp + 0x14]
mov dword [esp + 0x154], ebx
call fcn.0042f6c0
or ebp, 0xffffffff
cmp eax, ebp
jne 0x4594ea
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_lstrlen]
mov al, byte [esp + eax + 0x3f]
cmp al, 0x5c
je 0x4594b4
cmp al, 0x2f
je 0x4594b4
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0x496478
push ecx
call fcn.0042f340
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 1
call fcn.0042f0e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x150], bl
call fcn.0042efa0
lea edx, [esp + 0x10]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0042f340
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 2
call fcn.0042f0e0
mov byte [esp + 0x150], bl
lea ecx, [esp + 0x18]
jmp 0x4594e5
lea edx, [esp + 0x10]
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0042f340
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x154], 3
call fcn.0042f0e0
mov byte [esp + 0x150], bl
lea ecx, [esp + 0x18]
call fcn.0042efa0
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.004305a0
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, ebp
je 0x4595d0
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push esi
call dword [sym.imp.kernel32.dll_GetFileTime]
test eax, eax
je 0x4595bd
lea ecx, [esp + 0x30]
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.kernel32.dll_FileTimeToSystemTime]
test eax, eax
je 0x4595bd
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x18]
and edi, 0xffff
call fcn.0042ee00
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.0042fee0
add esp, 0x14
lea ecx, [esp + 0x18]
call fcn.004305a0
push eax
push str.DriverDate
push str.3DSettings
call fcn.0043cef0
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x150], bl
call fcn.0042efa0
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp edi, 0x7d2
jge 0x459652
mov ecx, dword [esp + 0x15c]
push ecx
lea ecx, [esp + 0x24]
call fcn.0042f030
lea ecx, [esp + 0x20]
mov byte [esp + 0x150], 5
call fcn.0042f7a0
push str.nvidia
lea ecx, [esp + 0x24]
call fcn.0042faf0
cmp eax, ebp
je 0x459611
mov byte [esp + 0x150], bl
lea ecx, [esp + 0x20]
jmp 0x45964d
push str.radeon
lea ecx, [esp + 0x24]
call fcn.0042faf0
cmp eax, ebp
je 0x459630
mov byte [esp + 0x150], bl
lea ecx, [esp + 0x20]
jmp 0x45964d
push 0x497bf0
lea ecx, [esp + 0x24]
call fcn.0042faf0
cmp eax, ebp
mov byte [esp + 0x150], bl
lea ecx, [esp + 0x20]
je 0x459666
call fcn.0042efa0
lea ecx, [esp + 0x10]
mov dword [esp + 0x150], ebp
call fcn.0042efa0
mov al, 1
jmp 0x45967d
call fcn.0042efa0
lea ecx, [esp + 0x10]
mov dword [esp + 0x150], ebp
call fcn.0042efa0
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