Function at 0x1400379f0
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 [0x140079010]
xor rax, rsp
mov qword [rbp + 0x9d0], rax
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.1400423d0
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 0x140037bce
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.1400423d0
lea r9, [rbp + 0x190]
mov edx, 0x104
lea r8, str._s_spooldriverscolorAsusICMForceUpdate.txt
lea rcx, [rbp - 0x80]
call fcn.14000a160
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 0x140037bce
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.1400423d0
lea r8, [rbp - 0x80]
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call fcn.140044288
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 0x140037b1b
test dword [rsp + 0x50], 0x400
jne 0x140037b24
lea rcx, [rbp - 0x80]
call fcn.14003e790
lea r9, [rbp + 0x190]
mov edx, 0x104
lea r8, str._s_spooldriverscolor
lea rcx, [rbp - 0x80]
call fcn.14000a160
mov edx, 1
lea rcx, [rbp - 0x80]
call fcn.140037d80
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rdi
xor r8d, r8d
lea rcx, [0x14005bc00]
xor edx, edx
mov ebx, edi
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140037b8b
mov r8, qword [rsp + 0x40]
lea rcx, [rbp + 0x190]
mov edx, 0x104
call fcn.140044288
mov ebx, 1
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140037b9b
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test ebx, ebx
je 0x140037bce
lea r9, [rbp + 0x190]
mov qword [rsp + 0x20], rsi
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rbp - 0x80]
call fcn.14000a160
mov edx, 2
lea rcx, [rbp - 0x80]
call fcn.140037d80
xor edx, edx
lea rcx, [rbp + 0x5b0]
mov r8d, 0x208
call fcn.1400423d0
cmp dword [0x14007b3dc], 1
mov ebx, edi
sete bl
call fcn.14002af30
test eax, eax
je 0x140037c00
lea r8, [0x14006bee0]
jmp 0x140037c14
test ebx, ebx
lea rax, [0x14006bee8]
lea r8, [0x14006bef0]
cmovne r8, rax
mov edx, 0x104
lea rcx, [rbp + 0x5b0]
call fcn.140044288
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x5b0]
call fcn.14003d7c0
cmp dword [rsp + 0x48], 0x3e3
jne 0x140037d4c
xor edx, edx
lea rcx, [rbp + 0x190]
mov r8d, 0x208
call fcn.1400423d0
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.1400423d0
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x190]
call fcn.140037840
test eax, eax
je 0x140037d4c
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x208
call fcn.1400423d0
lea r8, [rbp + 0x190]
mov edx, 0x104
lea rcx, [rbp + 0x3a0]
call fcn.140044288
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 0x140037ce5
test dword [rsp + 0x50], 0x400
jne 0x140037cf1
lea rcx, [rbp + 0x190]
call fcn.14003e790
xor edx, edx
lea rcx, [rbp + 0x7c0]
mov r8d, 0x208
call fcn.1400423d0
lea r9, [rbp - 0x80]
mov qword [rsp + 0x20], rsi
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rbp + 0x7c0]
call fcn.14000a160
mov edx, 3
lea rcx, [rbp + 0x7c0]
call fcn.140037d80
lea rdx, [rsp + 0x48]
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x5b0]
call fcn.14003d7c0
mov rcx, qword [rbp + 0x9d0]
xor rcx, rsp
call fcn.1400406e0
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