Function at 0x140011720
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 [0x1402ad7a8]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r14d, edx
mov qword [0x1403c06b8], rcx
mov rsi, rcx
xor edx, edx
lea rcx, [0x1402674e8]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.GDI32.dll_CreateICW]
xor r15d, r15d
mov rbx, rax
test rax, rax
je 0x140011905
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 0x140011803
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 0x140011813
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1403bfecc], ebx
cmp edi, 0x10
jle 0x1400118fb
cmp dword [0x1403a5010], 0xbba
je 0x1400118fb
mov edi, r15d
mov dword [rsp + 0x60], r15d
call fcn.14001ce70
test al, al
je 0x14001188a
lea rcx, str.Dwmapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14001188a
lea rdx, str.DwmIsCompositionEnabled
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140011876
lea rcx, [rsp + 0x60]
call rax
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
js 0x14001188a
cmp dword [rsp + 0x60], r15d
je 0x1400118fb
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x104
call fcn.1401bd260
xor edx, edx
lea rcx, [rbp + 0x120]
mov r8d, 0x104
call fcn.1401bd260
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 0x1400118ef
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.140016800
mov dword [0x1403bfd28], 0x80018
jmp 0x140011905
mov dword [0x1403bfd28], 0x18
cmp dword [0x1403c38d8], r15d
mov r12d, 0x20
jne 0x14001196a
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.14000ed00
test eax, eax
jne 0x14001196a
movzx eax, word [rsp + 0x60]
lea r8, str.DirectX_version_is__d._d__c__r_n
mov r9d, dword [rsp + 0x6c]
lea rcx, [0x1403c38e0]
mov dword [rsp + 0x28], eax
mov edx, 0x104
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
call fcn.140008670
lea rdi, [0x140011dd0]
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, [0x1403c06c0]
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 [0x1403bfd28]
lea r8, [0x1403c0790]
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 [0x1403b8228], rax
test rax, rax
je 0x140011d98
cmp dword [0x1403c38d8], r15d
jne 0x140011ce2
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, [0x140267250]
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, [0x1403c0f64]
mov r8d, 0x118
mov rdi, rax
call fcn.1401bd260
lea rcx, str.ntdll.dll
mov dword [0x1403c0f60], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140011b38
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140011b38
lea rcx, [0x1403c0f60]
call rax
cmp dword [0x1403b5de8], 0xb
jge 0x140011cfa
cmp dword [0x1403c0d38], r15d
jne 0x140011cfa
lea rcx, str.d3d9.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140011cfa
lea rdx, str.Direct3DCreate9Ex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140011b9e
lea rdx, [0x1403c5cd8]
mov ecx, r12d
call rax
mov rcx, qword [0x1403c5cd8]
test rcx, rcx
je 0x140011cfa
jmp 0x140011bd1
lea rdx, str.Direct3DCreate9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140011bca
mov ecx, r12d
call rax
movsxd rcx, eax
mov qword [0x1403c5cd0], rcx
test eax, eax
je 0x140011cfa
mov rcx, qword [0x1403c5cd8]
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 0x140011c7e
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
lea rbx, [0x1403c5ce0]
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 0x140011c87
mov rcx, qword [0x1403c5cd8]
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 0x140011cfa
jmp 0x140011c87
cmp qword [0x1403c5cd0], rax
je 0x140011cfa
lea rcx, str.D3DX9_43.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1403b84d8], rax
test rax, rax
je 0x140011cb6
mov dword [0x1403c0d38], 9
mov dword [0x1403b5de8], 9
jmp 0x140011cfa
call qword [sym.imp.USER32.dll_GetActiveWindow]
xor r9d, r9d
lea r8, [0x140267250]
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 [0x1403c38d8], 1
jmp 0x140011cfa
lea r8, str.DirectX_Unavailable_r_n
mov edx, 0x104
lea rcx, [0x1403c38e0]
call fcn.140008670
mov edx, 0x8f
mov rcx, rsi
call qword [sym.imp.USER32.dll_LoadBitmapW]
mov rcx, qword [0x1403b8228]
mov r9d, 2
mov r8b, 0xff
mov qword [0x1403c5ce8], rax
xor edx, edx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov rcx, qword [0x1403b8228]
mov edx, r14d
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.140022cb0
cmp dword [0x1403bfecc], r15d
jne 0x140011d61
mov r9d, 0x400
lea r8, str.You_must_run_this_program_as_ADMINISTRATOR_n
mov edx, r9d
lea rcx, [0x1403c2480]
call fcn.1401c9b64
mov rcx, qword [0x1403b8228]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [0x1403b8228]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x1403b8228]
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1401b72a0
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