Function at 0x14002bb60
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov ebp, r9d
mov rsi, r8
mov r14, rcx
test r8, r8
je 0x14002bbb5
mov r10d, 0x2710
mov rax, r8
mov edx, r10d
cmp byte [rax], 0
je 0x14002bba1
inc rax
sub rdx, 1
jne 0x14002bb93
sub r10, rdx
mov rax, rdx
neg rax
sbb rdi, rdi
and rdi, r10
test rdx, rdx
jne 0x14002bbb7
xor edi, edi
mov rcx, 0xffffffffffffffff
inc rdi
mov eax, 2
mul rdi
cmovo rax, rcx
mov rcx, rax
call fcn.140060b98
mov r8, rdi
mov rdx, rsi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.msvcrt.dll_mbstowcs]
nop dword [rax + rax]
mov r9d, ebp
mov r8, rbx
mov rcx, r14
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 0x14002bc1c
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x520]
sub rsp, 0x620
mov rax, qword [0x140083bc0]
xor rax, rsp
mov qword [rbp + 0x510], rax
mov rdi, rcx
mov edx, 0x7f89
xor ecx, ecx
mov esi, r9d
mov rbx, r8
call qword [sym.imp.USER32.dll_LoadCursorA]
nop dword [rax + rax]
mov r14d, 0x7f00
xor ecx, ecx
mov edx, r14d
mov qword [0x140085028], rax
call qword [sym.imp.USER32.dll_LoadCursorA]
nop dword [rax + rax]
mov edx, 0x1770
mov rcx, rdi
mov qword [0x140085020], rax
mov qword [0x140084df8], rax
call qword [sym.imp.USER32.dll_LoadIconA]
nop dword [rax + rax]
xor edx, edx
lea rcx, [rbp + 0xf0]
mov r8d, 0x208
mov qword [0x1400851e0], rax
call sub.msvcrt.dll_memset
xor r12d, r12d
lea r15, [0x140084af0]
mov r9d, 0x1f4
mov byte [0x140084af0], r12b
mov r8, r15
mov rcx, rdi
lea edx, [r12 + 0x6d]
call qword [sym.imp.USER32.dll_LoadStringA]
nop dword [rax + rax]
lea rax, [0x14002cf10]
mov dword [rbp - 0x70], 0x50
mov qword [rbp - 0x68], rax
mov edx, r14d
mov rax, qword [0x1400851d8]
xor ecx, ecx
mov qword [rbp - 0x58], rax
mov rax, qword [0x1400851e0]
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x6c], 3
mov qword [rbp - 0x60], r12
call qword [sym.imp.USER32.dll_LoadCursorA]
nop dword [rax + rax]
movdqa xmm0, xmmword [reloc.OLEAUT32.dll_SysStringLen]
lea rcx, [rbp - 0x70]
movdqa xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r12
call qword [sym.imp.USER32.dll_RegisterClassExA]
nop dword [rax + rax]
lea rax, [0x14001a790]
mov dword [rbp - 0x20], 0x4000
mov edx, r14d
mov qword [rbp - 0x18], rax
xor ecx, ecx
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], rdi
mov qword [rbp], r12
call qword [sym.imp.USER32.dll_LoadCursorA]
nop dword [rax + rax]
xor ecx, ecx
mov qword [rbp + 8], rax
call qword [sym.imp.GDI32.dll_GetStockObject]
nop dword [rax + rax]
lea rcx, [rbp - 0x20]
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x10], rax
lea rax, str.AdvancedFilterControl
mov qword [rbp + 0x20], rax
call qword [sym.imp.USER32.dll_RegisterClassA]
nop dword [rax + rax]
mov r13d, 0x104
mov byte [0x140084cf0], r12b
mov ecx, r13d
lea rdx, [0x140084cf0]
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
nop dword [rax + rax]
lea rcx, [0x1400853c0]
mov qword [0x1400851d8], rdi
mov dword [0x140087088], 6
call fcn.140001dec
lea rcx, [0x140085fd0]
call fcn.140001dec
lea rcx, [0x140086110]
call fcn.140001dec
lea rcx, [0x140086198]
call fcn.140001dec
lea rcx, [0x1400858f8]
call fcn.140001dec
lea rcx, [0x140085a20]
call fcn.140001dec
lea rcx, [0x140087030]
call fcn.140001dec
lea r14d, [r12 + 1]
lea rcx, [0x140084ff8]
mov word [0x140085fc0], r14w
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop dword [rax + rax]
mov qword [rsp + 0x58], r12
lea r8, [0x140084e00]
mov qword [rsp + 0x50], rdi
mov eax, 0x80000000
mov qword [rsp + 0x48], r12
mov r9d, 0xff0000
mov qword [rsp + 0x40], r12
mov rdx, r15
mov dword [rsp + 0x38], r12d
xor ecx, ecx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
nop dword [rax + rax]
mov qword [0x1400851c8], rax
test rax, rax
je 0x14002c239
lea r9, [rbp + 0xf0]
mov r8d, r13d
mov rdx, rbx
lea rcx, [0x1400851c0]
call fcn.14002a274
test eax, eax
jne 0x14002c239
mov r8d, r13d
mov byte [0x140085030], r12b
lea rdx, [rbp + 0xf0]
lea rcx, [0x140085030]
call qword [sym.imp.msvcrt.dll_wcstombs]
nop dword [rax + rax]
lea r10, [0x140084e00]
mov byte [0x140084e00], r12b
mov edx, 0x1f4
lea r9, str.GPUView:
mov r8d, edx
mov rcx, r10
sub r9, r10
lea rax, [r8 + 0x7ffffe0a]
test rax, rax
je 0x14002bf49
mov al, byte [rcx + r9]
test al, al
je 0x14002bf49
mov byte [rcx], al
add rcx, r14
sub r8, r14
jne 0x14002bf2b
test r8, r8
lea rax, [rcx - 1]
lea r8, [0x140085030]
cmovne rax, rcx
mov rcx, r10
mov byte [rax], r12b
call fcn.140001c84
lea rdx, str.Log.txt
lea rcx, [0x1400851f0]
call fcn.140034e6c
movdqa xmm0, xmmword [0x140071c20]
mov ecx, 0x478
movdqa xmm1, xmmword [0x140071bf0]
movdqa xmmword [rbp + 0x60], xmm0
movdqa xmm0, xmmword [0x140071be0]
movdqa xmmword [rbp + 0x70], xmm1
movdqa xmm1, xmmword [0x140071c00]
movdqa xmmword [rbp + 0x80], xmm0
movdqa xmm0, xmmword [0x140071c20]
movdqa xmmword [rbp + 0x90], xmm1
movdqa xmm1, xmmword [0x140071bf0]
movdqa xmmword [rbp + 0xa0], xmm0
movdqa xmmword [rbp + 0xb0], xmm1
movdqa xmmword [rbp + 0xc0], xmm0
movdqa xmmword [rbp + 0xd0], xmm1
mov dword [rbp + 0xe0], 0x1c
call fcn.14005fe48
test rax, rax
je 0x14002c00a
lea rdx, [rbp + 0x60]
mov rcx, rax
call fcn.14000a3fc
jmp 0x14002c00d
mov rax, r12
mov r8d, r13d
mov qword [0x140085fc8], rax
lea rdx, [rbp + 0x300]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
cmp eax, r13d
jae 0x14002c239
mov edx, 0x5c
lea rcx, [rbp + 0x300]
call qword [sym.imp.msvcrt.dll_wcsrchr]
nop dword [rax + rax]
lea r8, str.dxetw.dll
mov rdx, r13
lea rcx, [rbp + 0x300]
mov word [rax], r12w
call qword [sym.imp.msvcrt.dll_wcscat_s]
nop dword [rax + rax]
test eax, eax
jne 0x14002c239
lea rcx, [rbp + 0x300]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
test rax, rax
je 0x14002c239
lea rdx, str.GetDxEtwFactory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x14002c239
call rax
nop dword [rax]
lea rcx, [rbp + 0xf0]
mov qword [0x140084ae8], rax
call fcn.14002aecc
test eax, eax
jne 0x14002c239
call fcn.1400299a0
call qword [sym.imp.COMCTL32.dll_InitCommonControls]
nop dword [rax + rax]
mov rax, qword [0x1400851c8]
lea rdx, str.msctls_statusbar32
mov qword [rsp + 0x58], r12
mov r9d, 0x40000100
mov qword [rsp + 0x50], rdi
xor r8d, r8d
mov qword [rsp + 0x48], r12
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.USER32.dll_CreateWindowExA]
nop dword [rax + rax]
mov qword [0x1400851d0], rax
call fcn.14002b49c
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreatePen]
nop dword [rax + rax]
xor edx, edx
xor ecx, ecx
mov r8d, 0xffffff
mov rbx, rax
call qword [sym.imp.GDI32.dll_CreatePen]
nop dword [rax + rax]
mov rcx, qword [0x1400851c8]
xorps xmm0, xmm0
mov edx, esi
movdqa xmmword [0x140085dd0], xmm0
mov qword [0x140085dc0], rax
mov qword [0x140085dc8], rbx
call qword [sym.imp.USER32.dll_ShowWindow]
nop dword [rax + rax]
mov edx, 0x7f02
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorA]
nop dword [rax + rax]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
nop dword [rax + rax]
mov rcx, qword [0x1400851c8]
lea rdx, str.Loading...
mov rbx, rax
call qword [sym.imp.USER32.dll_SetWindowTextA]
nop dword [rax + rax]
mov rcx, qword [0x140084ae8]
lea rax, str.An_unknown_failure_has_occurred.
mov qword [rsp + 0x60], rax
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call rax
nop dword [rax]
mov r8, qword [0x140084ae8]
mov edx, r14d
mov rcx, qword [r8]
mov rax, qword [rcx + 0x20]
mov rcx, r8
call rax
nop dword [rax]
mov qword [0x140087080], rax
mov rdx, rax
test rax, rax
jne 0x14002c266
lea rax, str.Failed_to_create_ETW_session.
mov dword [rsp + 0x68], 0x80004005
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x60]
call fcn.14002bac8
xor eax, eax
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.140061140
mov rbx, qword [rsp + 0x668]
add rsp, 0x620
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [0x140084ae8]
lea r8, [0x140085360]
xor r9d, r9d
mov rax, qword [rcx]
mov rax, qword [rax + 0x38]
call rax
nop dword [rax]
mov rcx, qword [0x140084ae8]
mov r8b, byte [0x140085fa8]
mov rdx, qword [0x140087080]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call rax
nop dword [rax]
mov rcx, qword [0x140084ae8]
mov r8b, byte [0x140085fa9]
mov rdx, qword [0x140087080]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call rax
nop dword [rax]
mov rcx, qword [0x140084ae8]
lea r8, [0x1400851c0]
mov rdx, qword [0x140087080]
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call rax
nop dword [rax]
mov rcx, qword [0x140084ae8]
lea rdx, [rbp - 0x80]
mov qword [rbp - 0x80], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x58]
call rax
nop dword [rax]
test eax, eax
jns 0x14002c31a
lea rcx, str.Failed_to_load_xperf_addin._nGPUView_requires_XPerfCore.dll__perf_nt.dll__and_perf_dx.dll.
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], eax
jmp 0x14002c22f
mov rcx, qword [0x140084ae8]
lea r9, [rsp + 0x70]
mov r8, qword [rbp - 0x80]
lea rdx, [rbp + 0xf0]
mov qword [rsp + 0x70], r12
mov rax, qword [rcx]
mov rax, qword [rax + 0x60]
call rax
nop dword [rax]
test eax, eax
jns 0x14002c34f
lea rcx, str.Failed_to_create_xperf_session.
jmp 0x14002c30c
mov rcx, qword [0x140084ae8]
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call rax
nop dword [rax]
test eax, eax
jns 0x14002c379
lea rcx, str.Failed_to_query_GPUView_info_source_from_xperf.
jmp 0x14002c30c
mov rcx, qword [0x140084ae8]
mov r9, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov rdx, qword [0x140087080]
mov rax, qword [rcx]
mov byte [rsp + 0x20], r14b
mov rax, qword [rax + 0x30]
call rax
nop dword [rax]
test eax, eax
jns 0x14002c3b2
lea rcx, str.Failed_to_open_ETW_trace.
jmp 0x14002c30c
mov rcx, qword [0x140084ae8]
mov rdx, qword [rsp + 0x70]
mov rax, qword [rcx]
mov rax, qword [rax + 0x70]
call rax
nop dword [rax]
test eax, eax
jns 0x14002c3da
lea rcx, str.Failed_to_process_trace_events.
jmp 0x14002c30c
mov rcx, qword [0x1400851c8]
lea rdx, str.Loading..._Done__Post_Process_Events...
call qword [sym.imp.USER32.dll_SetWindowTextA]
nop dword [rax + rax]
mov rcx, qword [0x140084ae8]
mov rdx, qword [0x140087080]
mov rax, qword [rcx]
mov rax, qword [rax + 0x78]
call rax
nop dword [rax]
test eax, eax
jns 0x14002c41e
lea rcx, str.Failed_to_post_process_trace_events.
jmp 0x14002c30c
mov rcx, qword [0x140084ae8]
mov dword [rsp + 0x68], r12d
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call rax
nop dword [rax]
lea rcx, [rsp + 0x60]
call fcn.14002bac8
mov rcx, qword [0x1400851c8]
lea rdx, str.Building_Views...
mov byte [0x140085faa], r14b
call qword [sym.imp.USER32.dll_SetWindowTextA]
nop dword [rax + rax]
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
jmp 0x14002c492
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_TranslateMessage]
nop dword [rax + rax]
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_DispatchMessageA]
nop dword [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor r8d, r8d
lea rcx, [rbp - 0x70]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
nop dword [rax + rax]
test eax, eax
jne 0x14002c472
call fcn.14002b0f4
mov rcx, qword [0x140087080]
mov rax, qword [rcx]
mov rax, qword [rax + 0x100]
call rax
nop dword [rax]
mov rcx, rax
mov qword [0x1400870c0], rax
mov rax, qword [rax]
mov rax, qword [rax]
call rax
nop dword [rax]
mov rcx, rbx
call qword [sym.imp.USER32.dll_SetCursor]
nop dword [rax + rax]
mov ecx, 0x18
call fcn.14005fe48
mov rbx, rax
test rax, rax
je 0x14002c6b7
lea rcx, [rbp + 0xf0]
mov qword [rax + 8], r12
mov dword [rax + 0x10], r14d
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov qword [rbx], rax
test rax, rax
je 0x14002c6b1
mov rcx, rax
mov qword [rsp + 0x78], rbx
call fcn.14002b650
lea rcx, [rsp + 0x78]
mov ebx, eax
call fcn.140027bec
test ebx, ebx
jne 0x14002c239
mov edx, esi
mov rcx, rdi
call fcn.14002c8d4
test eax, eax
je 0x14002c239
call fcn.14002c6c4
test al, al
je 0x14002c5a3
mov rcx, qword [0x1400870c8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov rcx, qword [0x1400870d8]
or edx, 0xffffffff
mov byte [0x140087118], r14b
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov eax, r14d
jmp 0x14002c23b
mov edx, 0x6d
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadAcceleratorsA]
nop dword [rax + rax]
mov rcx, qword [0x1400851c8]
mov r9d, r14d
xor r8d, r8d
xor edx, edx
mov rbx, rax
call qword [sym.imp.USER32.dll_RedrawWindow]
nop dword [rax + rax]
jmp 0x14002c612
mov rcx, qword [rbp + 0x30]
lea r8, [rbp + 0x30]
mov rdx, rbx
call qword [sym.imp.USER32.dll_TranslateAcceleratorA]
nop dword [rax + rax]
test eax, eax
jne 0x14002c612
lea rcx, [rbp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
nop dword [rax + rax]
lea rcx, [rbp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageA]
nop dword [rax + rax]
xor r9d, r9d
lea rcx, [rbp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
nop dword [rax + rax]
test eax, eax
jg 0x14002c5d7
call fcn.140029ba0
lea rbx, [0x140084ff8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop dword [rax + rax]
mov rcx, qword [0x1400870a0]
test rcx, rcx
je 0x14002c66a
mov rax, qword [rcx]
mov edx, r14d
mov rax, qword [rax]
call rax
nop dword [rax]
mov qword [0x1400870a0], r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop dword [rax + rax]
mov rcx, qword [0x1400870c8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov rcx, qword [0x1400870d8]
or edx, 0xffffffff
mov byte [0x140087118], r14b
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
mov eax, dword [rbp + 0x40]
jmp 0x14002c23b
call fcn.140058878
int3
call fcn.140058878
int3