Function at 0x140010f90
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x5a0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140024018]
xor rax, rsp
mov qword [rsp + 0x590], rax
mov r13, rdx
mov ebx, ecx
xor r12d, r12d
mov qword [rsp + 0x38], r12
mov r14d, r12d
mov qword [rsp + 0x40], r12
mov r15d, r12d
mov qword [rsp + 0x48], r12
mov esi, r12d
xor edx, edx
mov r8d, 0x208
lea rcx, [r11 - 0x248]
call sub.VCRUNTIME140.dll_memset
mov edi, r12d
lea rcx, [rsp + 0x70]
call fcn.140007610
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x170]
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r12 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea r8, str.ASUSARMOURY_CRATE_Diagnosis
mov edx, 0x104
lea rcx, [rsp + 0x170]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov rax, qword [0x140024610]
test rax, rax
jne 0x140011082
mov ecx, 0x140
call fcn.140016414
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.1400128c0
nop
mov qword [0x140024610], rax
lea r9, str..log
lea r8, str.ArmouryCrate.UserSessionHelper
lea rdx, [rsp + 0x170]
mov rcx, rax
call fcn.140012f70
mov rax, qword [0x140024610]
test rax, rax
jne 0x1400110cb
mov ecx, 0x140
call fcn.140016414
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.1400128c0
nop
mov qword [0x140024610], rax
lea r9, str.WMain_Begin
lea r8, str.User_Session_Main
mov edx, 1
mov rcx, rax
call fcn.1400143e0
cmp ebx, 2
jge 0x1400111fc
mov edi, 1
mov ebx, 0x80070057
mov dword [rsp + 0x30], ebx
mov rax, qword [0x140024610]
test rax, rax
jne 0x140011128
mov ecx, 0x140
call fcn.140016414
mov qword [rsp + 0x50], rax
mov rcx, rax
call fcn.1400128c0
nop
mov qword [0x140024610], rax
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
lea r9, str.Failed_to_init_in_step__d__result__0x_08X
lea r8, str.User_Session_Main
mov edx, 1
mov rcx, rax
call fcn.1400143e0
mov rax, qword [0x140024610]
test rax, rax
jne 0x140011176
mov ecx, 0x140
call fcn.140016414
mov qword [rsp + 0x50], rax
mov rcx, rax
call fcn.1400128c0
nop
mov qword [0x140024610], rax
lea r9, str.WMain_End
lea r8, str.User_Session_Main
mov edx, 1
mov rcx, rax
call fcn.1400143e0
mov rdi, qword [0x140024610]
test rdi, rdi
jne 0x1400111c8
mov ecx, 0x140
call fcn.140016414
mov qword [rsp + 0x50], rax
mov rcx, rax
call fcn.1400128c0
mov rdi, rax
mov qword [0x140024610], rax
test rax, rax
je 0x1400111e4
test rax, rax
je 0x1400111dd
mov rcx, rdi
call fcn.140012d10
mov edx, 0x140
mov rcx, rdi
call fcn.140016704
mov qword [0x140024610], r12
test rsi, rsi
je 0x140011388
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x10]
nop
jmp 0x140011388
mov rdx, qword [r13 + 8]
lea rcx, [rsp + 0x80]
call fcn.140011440
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__::operator___void____ptr64____ptr64____ptr64]
cmp qword [rsp + 0x38], 0
jne 0x14001122f
mov edi, 3
jmp 0x1400110f4
lea r8, str.GlobalCamingCerter_UserSessionReadyEvent
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140011276
lea edi, [rax + 4]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test eax, eax
jg 0x140011268
mov dword [rsp + 0x30], eax
jmp 0x1400110fd
movzx ebx, ax
or ebx, 0x80070000
jmp 0x1400110f9
lea r8, str.GlobalCamingCerter_UserSessionStopEvent
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov r15, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x14001129c
lea edi, [rax + 5]
jmp 0x140011253
mov ecx, 0x6d0
call fcn.140016414
mov qword [rsp + 0x30], rax
mov rcx, rax
call fcn.140008af0
mov rsi, rax
test rax, rax
jne 0x1400112c8
lea edi, [rax + 6]
mov ebx, 0x80004005
jmp 0x1400110f9
mov r8d, 0x104
lea rdx, [rsp + 0x380]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x380]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x1400112fa
mov word [rax], r12w
call fcn.1400088e0
mov rcx, rax
lea r9, str.Before_manager_initializing
lea r8, str.User_Session_Main
mov edx, 1
call fcn.1400143e0
mov rax, qword [rsi]
lea rdx, [rsp + 0x380]
mov rcx, rsi
call qword [rax + 0x18]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x1400110fd
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], r15
mov r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x20]
jmp 0x14001114b
test r15, r15
je 0x140011396
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14, r14
je 0x1400113a4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400113b9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x38], r12
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x88]
call fcn.140007c40
lea rcx, [rsp + 0x90]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rsp + 0x108]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov eax, ebx
mov rcx, qword [rsp + 0x590]
xor rcx, rsp
call fcn.1400163f0
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret