Function at 0x140011690
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 [0x1402ac7a8]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r14d, edx
mov qword [0x1403b1368], rcx
mov rsi, rcx
xor edx, edx
lea rcx, [0x140266498]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.GDI32.dll_CreateICW]
xor r15d, r15d
mov rbx, rax
test rax, rax
je 0x140011875
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 0x140011773
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 0x140011783
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1403b0cbc], ebx
cmp edi, 0x10
jle 0x14001186b
cmp dword [0x140395ef0], 0xbba
je 0x14001186b
mov edi, r15d
mov dword [rsp + 0x60], r15d
call fcn.14001cc90
test al, al
je 0x1400117fa
lea rcx, str.Dwmapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x1400117fa
lea rdx, str.DwmIsCompositionEnabled
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400117e6
lea rcx, [rsp + 0x60]
call rax
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
js 0x1400117fa
cmp dword [rsp + 0x60], r15d
je 0x14001186b
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x104
call fcn.1401bcd10
xor edx, edx
lea rcx, [rbp + 0x120]
mov r8d, 0x104
call fcn.1401bcd10
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 0x14001185f
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.140016680
mov dword [0x1403b0b14], 0x80018
jmp 0x140011875
mov dword [0x1403b0b14], 0x18
cmp dword [0x1403b40d8], r15d
mov r12d, 0x20
jne 0x1400118da
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.14000ed50
test eax, eax
jne 0x1400118da
movzx eax, word [rsp + 0x60]
lea r8, str.DirectX_version_is__d._d__c__r_n
mov r9d, dword [rsp + 0x6c]
lea rcx, [0x1403b44d0]
mov dword [rsp + 0x28], eax
mov edx, 0x104
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
call fcn.140008670
lea rdi, [0x140011d40]
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, [0x1403b12a0]
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 [0x1403b0b14]
lea r8, [0x1403b1370]
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 [0x1403a9048], rax
test rax, rax
je 0x140011d08
cmp dword [0x1403b40d8], r15d
jne 0x140011c52
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, [0x140266200]
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, [0x1403b1b44]
mov r8d, 0x118
mov rdi, rax
call fcn.1401bcd10
lea rcx, str.ntdll.dll
mov dword [0x1403b1b40], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011aa8
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140011aa8
lea rcx, [0x1403b1b40]
call rax
cmp dword [0x1403a6c08], 0xb
jge 0x140011c6a
cmp dword [0x1403b16b8], r15d
jne 0x140011c6a
lea rcx, str.d3d9.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140011c6a
lea rdx, str.Direct3DCreate9Ex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140011b0e
lea rdx, [0x1403b68c0]
mov ecx, r12d
call rax
mov rcx, qword [0x1403b68c0]
test rcx, rcx
je 0x140011c6a
jmp 0x140011b41
lea rdx, str.Direct3DCreate9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140011b3a
mov ecx, r12d
call rax
movsxd rcx, eax
mov qword [0x1403b48b8], rcx
test eax, eax
je 0x140011c6a
mov rcx, qword [0x1403b68c0]
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 0x140011bee
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
lea rbx, [0x1403b68c8]
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 0x140011bf7
mov rcx, qword [0x1403b68c0]
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 0x140011c6a
jmp 0x140011bf7
cmp qword [0x1403b48b8], rax
je 0x140011c6a
lea rcx, str.D3DX9_43.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1403a92c8], rax
test rax, rax
je 0x140011c26
mov dword [0x1403b16b8], 9
mov dword [0x1403a6c08], 9
jmp 0x140011c6a
call qword [sym.imp.USER32.dll_GetActiveWindow]
xor r9d, r9d
lea r8, [0x140266200]
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 [0x1403b40d8], 1
jmp 0x140011c6a
lea r8, str.DirectX_Unavailable_r_n
mov edx, 0x104
lea rcx, [0x1403b44d0]
call fcn.140008670
mov edx, 0x8f
mov rcx, rsi
call qword [sym.imp.USER32.dll_LoadBitmapW]
mov rcx, qword [0x1403a9048]
mov r9d, 2
mov r8b, 0xff
mov qword [0x1403b68d0], rax
xor edx, edx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov rcx, qword [0x1403a9048]
mov edx, r14d
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.140022ad0
cmp dword [0x1403b0cbc], r15d
jne 0x140011cd1
mov r9d, 0x400
lea r8, str.You_must_run_this_tools_as_ADMINISTRATOR_n
mov edx, r9d
lea rcx, [0x1403b3060]
call fcn.1401c9614
mov rcx, qword [0x1403a9048]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [0x1403a9048]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x1403a9048]
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1401b6d50
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