Function at 0x14000c490
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 [0x1402a87a8]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r14d, edx
mov qword [0x1403bb5c8], rcx
mov rsi, rcx
xor edx, edx
lea rcx, [0x1402623d8]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.GDI32.dll_CreateICW]
xor r15d, r15d
mov rbx, rax
test rax, rax
je 0x14000c675
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 0x14000c573
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 0x14000c583
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x1403baddc], ebx
cmp edi, 0x10
jle 0x14000c66b
cmp dword [0x1403a0010], 0xbba
je 0x14000c66b
mov edi, r15d
mov dword [rsp + 0x60], r15d
call fcn.140017c10
test al, al
je 0x14000c5fa
lea rcx, str.Dwmapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14000c5fa
lea rdx, str.DwmIsCompositionEnabled
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000c5e6
lea rcx, [rsp + 0x60]
call rax
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
js 0x14000c5fa
cmp dword [rsp + 0x60], r15d
je 0x14000c66b
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x104
call fcn.1401b8ea0
xor edx, edx
lea rcx, [rbp + 0x120]
mov r8d, 0x104
call fcn.1401b8ea0
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 0x14000c65f
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.140011570
mov dword [0x1403bac38], 0x80018
jmp 0x14000c675
mov dword [0x1403bac38], 0x18
cmp dword [0x1403be7e8], r15d
mov r12d, 0x20
jne 0x14000c6da
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.140009a70
test eax, eax
jne 0x14000c6da
movzx eax, word [rsp + 0x60]
lea r8, str.DirectX_version_is__d._d__c__r_n
mov r9d, dword [rsp + 0x6c]
lea rcx, [0x1403be7f0]
mov dword [rsp + 0x28], eax
mov edx, 0x104
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x20], eax
call fcn.1400033e0
lea rdi, [0x14000cb40]
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, [0x1403bb5d0]
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 [0x1403bac38]
lea r8, [0x1403bb6a0]
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 [0x1403b3138], rax
test rax, rax
je 0x14000cb08
cmp dword [0x1403be7e8], r15d
jne 0x14000ca52
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, [0x140262140]
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, [0x1403bbe74]
mov r8d, 0x118
mov rdi, rax
call fcn.1401b8ea0
lea rcx, str.ntdll.dll
mov dword [0x1403bbe70], 0x11c
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000c8a8
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000c8a8
lea rcx, [0x1403bbe70]
call rax
cmp dword [0x1403b0cf8], 0xb
jge 0x14000ca6a
cmp dword [0x1403bbc48], r15d
jne 0x14000ca6a
lea rcx, str.d3d9.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x14000ca6a
lea rdx, str.Direct3DCreate9Ex
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000c90e
lea rdx, [0x1403c0be8]
mov ecx, r12d
call rax
mov rcx, qword [0x1403c0be8]
test rcx, rcx
je 0x14000ca6a
jmp 0x14000c941
lea rdx, str.Direct3DCreate9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000c93a
mov ecx, r12d
call rax
movsxd rcx, eax
mov qword [0x1403c0be0], rcx
test eax, eax
je 0x14000ca6a
mov rcx, qword [0x1403c0be8]
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 0x14000c9ee
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
lea rbx, [0x1403c0bf0]
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 0x14000c9f7
mov rcx, qword [0x1403c0be8]
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 0x14000ca6a
jmp 0x14000c9f7
cmp qword [0x1403c0be0], rax
je 0x14000ca6a
lea rcx, str.D3DX9_43.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1403b33e8], rax
test rax, rax
je 0x14000ca26
mov dword [0x1403bbc48], 9
mov dword [0x1403b0cf8], 9
jmp 0x14000ca6a
call qword [sym.imp.USER32.dll_GetActiveWindow]
xor r9d, r9d
lea r8, [0x140262140]
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 [0x1403be7e8], 1
jmp 0x14000ca6a
lea r8, str.DirectX_Unavailable_r_n
mov edx, 0x104
lea rcx, [0x1403be7f0]
call fcn.1400033e0
mov edx, 0x8f
mov rcx, rsi
call qword [sym.imp.USER32.dll_LoadBitmapW]
mov rcx, qword [0x1403b3138]
mov r9d, 2
mov r8b, 0xff
mov qword [0x1403c0bf8], rax
xor edx, edx
call qword [sym.imp.USER32.dll_SetLayeredWindowAttributes]
mov rcx, qword [0x1403b3138]
mov edx, r14d
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.14001da50
cmp dword [0x1403baddc], r15d
jne 0x14000cad1
mov r9d, 0x400
lea r8, str.You_must_run_this_program_as_ADMINISTRATOR_n
mov edx, r9d
lea rcx, [0x1403bd390]
call fcn.1401c57a4
mov rcx, qword [0x1403b3138]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [0x1403b3138]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [0x1403b3138]
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.1401b2ef0
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