Function at 0x1400109f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov rax, qword [0x14029f7a8]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r14d, edx
mov qword [0x140387b68], rcx
mov rsi, rcx
xor edx, edx
lea rcx, [0x14025ac20]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.GDI32.dll_CreateICW]
xor r15d, r15d
mov rbx, rax
test rax, rax
je 0x140010bd5
lea edx, [r15 + 8]
mov rcx, rax
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
lea edx, [r15 + 0x6c]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_GetDeviceCaps]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.GDI32.dll_DeleteDC]
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, r15d
mov qword [rsp + 0x60], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x60]
lea edx, [r15 + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140010ad3
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x6c]
lea r9d, [r15 + 4]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x68]
mov dword [rsp + 0x6c], 4
lea edx, [r15 + 0x14]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140010ae3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1403874bc], ebx
cmp edi, 0x10
jle 0x140010bcb
cmp dword [0x14036ccb0], 0xbba
je 0x140010bcb
mov edi, r15d
mov dword [rsp + 0x60], r15d
call fcn.14001a1c0
test al, al
je 0x140010b5a
lea rcx, str.Dwmapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140010b5a
lea rdx, str.DwmIsCompositionEnabled
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140010b46
lea rcx, [rsp + 0x60]
call rax
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
js 0x140010b5a
cmp dword [rsp + 0x60], r15d
je 0x140010bcb
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x104
call fcn.1401b5d40
xor edx, edx
lea rcx, [rbp + 0x120]
mov r8d, 0x104
call fcn.1401b5d40
xor r9d, r9d
lea rax, [rbp + 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x25]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x140010bbf
lea rdx, str.ntoskrnl.exe
lea rcx, [rbp + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x10]
call fcn.1400159f0
mov dword [0x140387314], 0x80018
jmp 0x140010bd5
mov dword [0x140387314], 0x18
cmp dword [0x14038ac98], r15d
mov r12d, 0x20
jne 0x140010c3a
lea r8, [rsp + 0x60]
mov dword [rsp + 0x6c], r15d
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x68], r15d
lea rcx, [rsp + 0x6c]
mov word [rsp + 0x60], r12w
call fcn.14000e0f0
test eax, eax
jne 0x140010c3a
movzx eax, word [rsp + 0x60]
lea r8, str.DirectX_version_is__d._d__c__r_n
mov r9d, dword [rsp + 0x6c]
lea rcx, [0x14038aca0]
mov dword [rsp + 0x28], eax
mov edx, 0x104
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
call fcn.140007b10
lea rdi, [0x1400110a0]
mov dword [rsp + 0x70], 0x50
mov edx, 0x7f00
mov qword [rsp + 0x78], rdi
xor ecx, ecx
mov dword [rsp + 0x74], 3
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x78], rsi
call qword [sym.imp.USER32.dll_LoadCursorW]
movdqa xmm0, xmmword [reloc.OLEAUT32.dll_SysStringLen]
mov edx, 0x6b
mov rcx, rsi
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x68], rax
call qword [sym.imp.USER32.dll_LoadIconW]
mov rcx, qword [rbp - 0x78]
lea rbx, [0x140387aa0]
mov edx, 5
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x50], rbx
call qword [sym.imp.USER32.dll_LoadIconW]
lea rcx, [rsp + 0x70]
mov qword [rbp - 0x48], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov ecx, dword [0x140387314]
lea r8, [0x140387b70]
mov qword [rsp + 0x58], r15
mov r9d, 0xcf0000
mov qword [rsp + 0x50], rsi
mov rdx, rbx
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], 0x12c
mov dword [rsp + 0x30], 0x226
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [0x14037f848], rax
test rax, rax
je 0x140011068
cmp dword [0x14038ac98], r15d
jne 0x140010fb2
xorps xmm0, xmm0
mov dword [rbp - 0x40], 0x50
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x20], xmm0
lea rbx, str.DirectX_App
movdqa xmmword [rbp - 0x10], xmm1
lea rcx, [rbp - 0x40]
mov qword [rbp], rbx
mov dword [rbp - 0x3c], 0x40
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], rsi
mov qword [rbp + 8], r15
call qword [sym.imp.USER32.dll_RegisterClassExW]
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, qword [rbp - 0x28]
lea r8, [0x14025a9c8]
mov qword [rsp + 0x58], r15
mov r9d, 0xcf0000
mov qword [rsp + 0x50], rcx
mov rdx, rbx
mov qword [rsp + 0x48], r15
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x32
mov dword [rsp + 0x30], 0x32
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.USER32.dll_CreateWindowExW]
xor edx, edx
lea rcx, [0x140388344]
mov r8d, 0x118
mov rdi, rax
call fcn.1401b5d40
lea rcx, str.ntdll.dll
mov dword [0x140388340], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140010e08
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140010e08
lea rcx, [0x140388340]
call rax
cmp dword [0x14037d408], 0xb
jge 0x140010fca
cmp dword [0x140387eb8], r15d
jne 0x140010fca
lea rcx, str.d3d9.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140010fca
lea rdx, str.Direct3DCreate9Ex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140010e6e
lea rdx, [0x14038d098]
mov ecx, r12d
call rax
mov rcx, qword [0x14038d098]
test rcx, rcx
je 0x140010fca
jmp 0x140010ea1
lea rdx, str.Direct3DCreate9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140010e9a
mov ecx, r12d
call rax
movsxd rcx, eax
mov qword [0x14038d090], rcx
test eax, eax
je 0x140010fca
mov rcx, qword [0x14038d098]
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x68], 1
mov dword [rbp - 0x78], 3
mov dword [rsp + 0x78], r15d
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
test rcx, rcx
je 0x140010f4e
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
lea rbx, [0x14038d0a0]
mov r9, rdi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rdx
xor edx, edx
mov dword [rsp + 0x20], 0x40
lea r8d, [rdx + 1]
call qword [rax + LoadRegTypeLib]
test eax, eax
jns 0x140010f57
mov rcx, qword [0x14038d098]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x38], rbx
mov r9, rdi
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rdx
xor edx, edx
mov rax, qword [rcx]
mov dword [rsp + 0x20], r12d
lea r8d, [rdx + 1]
call qword [rax + LoadRegTypeLib]
test eax, eax
js 0x140010fca
jmp 0x140010f57
cmp qword [0x14038d090], rax
je 0x140010fca
lea rcx, str.D3DX9_43.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14037fac8], rax
test rax, rax
je 0x140010f86
mov dword [0x140387eb8], 9
mov dword [0x14037d408], 9
jmp 0x140010fca
call qword [sym.imp.USER32.dll_GetActiveWindow]
xor r9d, r9d
lea r8, [0x14025a9c8]
mov rcx, rax
lea rdx, str.Invalid_DirectX_Tools__You_cant_use_Directx_Monitoring__get:_n_https:__www.microsoft.com_en_us_download_details.aspx_displaylangenid35__n
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [0x14038ac98], 1
jmp 0x140010fca
lea r8, str.DirectX_Unavailable_r_n
mov edx, 0x104
lea rcx, [0x14038aca0]
call fcn.140007b10
mov edx, 0x8f
mov rcx, rsi
call qword [sym.imp.USER32.dll_LoadBitmapW]
mov rcx, qword [0x14037f848]
mov r9d, 2
mov r8b, 0xff
mov qword [0x14038d0a8], rax
xor edx, edx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov rcx, qword [0x14037f848]
mov edx, r14d
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.14001f320
cmp dword [0x1403874bc], r15d
jne 0x140011031
mov r9d, 0x400
lea r8, str.You_must_run_this_tools_as_ADMINISTRATOR_n
mov edx, r9d
lea rcx, [0x140389860]
call fcn.1401c0850
mov rcx, qword [0x14037f848]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [0x14037f848]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x14037f848]
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1401b1a60
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret