Function at 0x14002c160
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x9e0]
sub rsp, 0xae0
mov rax, qword [0x140067010]
xor rax, rsp
mov qword [rbp + 0x9d0], rax
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.140034ac0
mov edx, 0x104
lea rcx, [rbp + 0x190]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
xor edi, edi
lea rsi, str.ASUSASUS_System_Control_InterfaceAsusOptimizationSplendid
test eax, eax
je 0x14002c33e
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.140034ac0
lea r9, [rbp + 0x190]
mov edx, 0x104
lea r8, str._s_spooldriverscolorAsusICMForceUpdate.txt
lea rcx, [rbp - 0x80]
call fcn.140009eb0
mov qword [rsp + 0x30], rdi
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14002c33e
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x208
call fcn.140034ac0
lea r8, [rbp - 0x80]
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call fcn.140036978
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
lea r8, [rsp + 0x50]
xor edx, edx
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesExW]
test eax, eax
je 0x14002c28b
test dword [rsp + 0x50], 0x400
jne 0x14002c294
lea rcx, [rbp - 0x80]
call fcn.140031aa0
lea r9, [rbp + 0x190]
mov edx, 0x104
lea r8, str._s_spooldriverscolor
lea rcx, [rbp - 0x80]
call fcn.140009eb0
mov edx, 1
lea rcx, [rbp - 0x80]
call fcn.14002c4e0
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rdi
xor r8d, r8d
lea rcx, [0x14004dab0]
xor edx, edx
mov ebx, edi
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x14002c2fb
mov r8, qword [rsp + 0x40]
lea rcx, [rbp + 0x190]
mov edx, 0x104
call fcn.140036978
mov ebx, 1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14002c30b
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test ebx, ebx
je 0x14002c33e
lea r9, [rbp + 0x190]
mov qword [rsp + 0x20], rsi
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rbp - 0x80]
call fcn.140009eb0
mov edx, 2
lea rcx, [rbp - 0x80]
call fcn.14002c4e0
xor edx, edx
lea rcx, [rbp + 0x5b0]
mov r8d, 0x208
call fcn.140034ac0
mov ebx, dword [0x140069270]
call fcn.1400221e0
test eax, eax
je 0x14002c36a
lea r8, [0x14005c690]
jmp 0x14002c37e
test ebx, ebx
lea rax, [0x14005c698]
lea r8, [0x14005c6a0]
cmovne r8, rax
mov edx, 0x104
lea rcx, [rbp + 0x5b0]
call fcn.140036978
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x5b0]
call fcn.140030910
cmp dword [rsp + 0x48], 0x3e3
jne 0x14002c4b6
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.140034ac0
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.140034ac0
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x190]
call fcn.14002bfb0
test eax, eax
je 0x14002c4b6
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x208
call fcn.140034ac0
lea r8, [rbp + 0x190]
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call fcn.140036978
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
lea r8, [rsp + 0x50]
xor edx, edx
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesExW]
test eax, eax
je 0x14002c44f
test dword [rsp + 0x50], 0x400
jne 0x14002c45b
lea rcx, [rbp + 0x190]
call fcn.140031aa0
xor edx, edx
lea rcx, [rbp + 0x7c0]
mov r8d, 0x208
call fcn.140034ac0
lea r9, [rbp - 0x80]
mov qword [rsp + 0x20], rsi
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rbp + 0x7c0]
call fcn.140009eb0
mov edx, 3
lea rcx, [rbp + 0x7c0]
call fcn.14002c4e0
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x5b0]
call fcn.140030910
mov rcx, qword [rbp + 0x9d0]
xor rcx, rsp
call fcn.140032e60
lea r11, [rsp + 0xae0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret