Function at 0x402620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454de7
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x477070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
movaps xmm0, xmmword [0x46e4a0]
lea eax, [ebp - 0x10]
movups xmmword [ebp - 0x44], xmm0
lea ecx, [ebp - 0xdc]
mov byte [ebp - 0xac], 0
movaps xmm0, xmmword [0x46e4b0]
push dword [ebp - 0xac]
movups xmmword [ebp - 0x34], xmm0
push eax
movaps xmm0, xmmword [0x46e490]
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0xcc], 0x477a14
mov dword [ebp - 0xe0], 0x477a14
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x14], 0x591f
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
call fcn.00405320
push ecx
lea ecx, [ebp - 0x10c]
mov dword [ebp - 4], 0
call fcn.00405410
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], 0x477a14
mov dword [ebp - 0x2c], str.00000000_0000_0000_0000_000000000000
mov dword [ebp - 0x28], str.8BE4DF61_93CA_11d2_AA0D_00E098032B8C
mov dword [ebp - 0x24], str.4DA4F952_2516_4D06_8975_65036403A8C7
mov dword [ebp - 0x20], 0x466863
mov dword [ebp - 0x1c], str.RstOptaneConfig
mov dword [ebp - 0x18], str.SecureBoot
mov dword [ebp - 0x14], str.BootOrder
call fcn.004061e0
push ecx
lea ecx, [ebp - 0xf8]
call fcn.00406d50
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0xb4], 0
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 4
call fcn.00405250
mov bl, al
lea eax, [ebp - 0xbc]
push ecx
push eax
lea ecx, [ebp - 0xd0]
call fcn.00434020
test eax, eax
je 0x4027bb
push 0xeb
push str.SourceFilesOptane.cpp
push str.Failed_to_enumerate_PCI_devices
push 0x4e2d
lea ecx, [ebp - 0x5c]
call fcn.004016d0
push 0x474bb0
lea eax, [ebp - 0x5c]
push eax
call fcn.00439290
mov edx, dword [ebp - 0xb8]
mov ecx, dword [ebp - 0xbc]
mov byte [ebp - 0xac], 0
push dword [ebp - 0xac]
call fcn.00401550
add esp, 4
cmp eax, dword [ebp - 0xb8]
je 0x4027fa
push 0xf0
push str.SourceFilesOptane.cpp
push str.This_is_Blue_Bird._Blue_Bird_is_not_supported_by_this_driver.
push 0x4e2e
jmp 0x4027a5
lea edx, [ebp - 0xc8]
lea ecx, [ebp - 0xbc]
call fcn.00403f40
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x10c]
call fcn.00405770
test al, al
jne 0x40283a
push 0xfc
push str.SourceFilesOptane.cpp
push str.Your_PCH_is_not_supported
push 0x520c
jmp 0x4027a5
test bl, bl
jne 0x402857
push 0x100
push str.SourceFilesOptane.cpp
push str.Your_CPU_is_not_supported
push 0x520d
jmp 0x4027a5
lea ecx, [ebp - 0x34]
call fcn.00405e00
test al, al
jne 0x40287c
push 0x105
push str.SourceFilesOptane.cpp
push str.Your_BIOS_is_set_in_Legacy_Mode
push 0x520e
jmp 0x4027a5
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xac], 0x477a14
call fcn.00407390
cmp eax, 0x520f
jne 0x4028b1
push 0x10d
push str.SourceFilesOptane.cpp
push str.Failed_to_check_partition_type_compatibility.
push 0x5213
jmp 0x4027a5
test eax, eax
je 0x4028ca
push 0x111
push str.SourceFilesOptane.cpp
push str.Incorrect_partition_type_on_system_disk
push eax
jmp 0x4027a5
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0xf8]
call fcn.00406f20
mov bl, al
lea esi, [edi + 4]
mov ecx, esi
push 0x465774
test bl, bl
je 0x4028f3
push str.IIF_RAID_MODE
jmp 0x4028f8
push str.IIF_SKIPHWCHECK
call fcn.004175d0
mov ecx, edi
call fcn.00416d20
test bl, bl
jne 0x40292d
lea ecx, [ebp - 0x34]
call fcn.00405ec0
test al, al
jne 0x40292d
push 0x122
push str.SourceFilesOptane.cpp
push str.System_is_in_AHCI_mode_and_cannot_be_switched_to_RAID_mode
push 0x520a
jmp 0x4027a5
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xcc], 0x477a14
call fcn.00433e70
test al, al
jne 0x4029a0
lea ecx, [ebp - 0xb0]
call fcn.00407030
cmp eax, 0x520f
jne 0x402971
push 0x12e
push str.SourceFilesOptane.cpp
push str.Failed_to_check_available_space_on_partition.
push 0x5214
jmp 0x4027a5
test eax, eax
je 0x4029a0
push 0x132
push str.SourceFilesOptane.cpp
push str.Failed_to_shrink_system_drive_for_metadata
push eax
lea ecx, [ebp - 0xa8]
call fcn.004016d0
push 0x474bb0
lea eax, [ebp - 0xa8]
jmp 0x4027b5
test bl, bl
jne 0x402a2a
push 0x465774
push str.IIF_NODRV
mov ecx, esi
call fcn.004175d0
push 0x208
call fcn.0043694b
add esp, 4
mov esi, eax
push esi
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.IntelPackage_Cache
push esi
call ebx
cmp dword [edi + 0x24c], 8
lea eax, [edi + 0x238]
jb 0x4029f6
mov eax, dword [eax]
push eax
push esi
call ebx
push str.Driver
push esi
call ebx
push esi
push str._Drivers_package_folder_is__s
push 0x4656cc
push 0x477a14
call fcn.00433950
push 0
push 0
mov edx, esi
mov ecx, 0xf
call fcn.0041b4c0
add esp, 0x18
lea ecx, [ebp - 0xc8]
call fcn.00402f70
lea ecx, [ebp - 0xbc]
call fcn.00402f20
lea ecx, [ebp - 0xf8]
call fcn.00402ac0
lea ecx, [ebp - 0x10c]
call fcn.00402ac0
mov ecx, dword [ebp - 0xdc]
test ecx, ecx
je 0x402a72
mov eax, dword [ebp - 0xd4]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.00403240
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00436666
mov esp, ebp
pop ebp
ret