Function at 0x140054260
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x1c8]
sub rsp, 0x2b0
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
movaps xmmword [rax - 0x58], xmm9
mov rax, qword [0x1400cb058]
xor rax, rsp
mov qword [rbp + 0x160], rax
xor r15d, r15d
mov dword [rsp + 0x68], r15d
mov ebx, 4
xor edx, edx
lea ecx, [rdx + 0xa]
call fcn.1400362b0
test eax, eax
je 0x140054337
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbx + rcx]
cmp dword [0x1400ce35c], eax
jle 0x140054310
lea rcx, [0x1400ce35c]
call fcn.140058bd8
cmp dword [0x1400ce35c], 0xffffffff
jne 0x140054310
lea rcx, str.user32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400ce348], rax
lea rcx, [0x1400ce35c]
call fcn.140058b78
lea rdx, str.SetThreadDpiAwarenessContext
mov rcx, qword [0x1400ce348]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140054337
mov rcx, 0xfffffffffffffffc
call rax
jmp 0x1400543bc
mov edx, 3
lea ecx, [rdx + 3]
call fcn.1400362b0
test eax, eax
je 0x1400543b6
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rbx + rcx]
cmp dword [0x1400ce358], eax
jle 0x140054394
lea rcx, [0x1400ce358]
call fcn.140058bd8
cmp dword [0x1400ce358], 0xffffffff
jne 0x140054394
lea rcx, str.shcore.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x1400ce350], rax
lea rcx, [0x1400ce358]
call fcn.140058b78
lea rdx, str.SetProcessDpiAwareness
mov rcx, qword [0x1400ce350]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400543b6
mov ecx, 2
call rax
jmp 0x1400543bc
call qword [sym.imp.USER32.dll_SetProcessDPIAware]
mov dword [rbp], 0x50
mov dword [rbp + 4], 0x40
lea rax, [0x140053af0]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x18], rax
xorps xmm2, xmm2
xorps xmm3, xmm3
lea rax, str.Class
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], r15
movups xmm0, xmmword [rbp]
movaps xmmword [0x1400ce2c0], xmm0
movups xmm1, xmmword [rbp + 0x10]
movaps xmmword [0x1400ce2d0], xmm1
movaps xmmword [0x1400ce2e0], xmm2
movaps xmmword [0x1400ce2f0], xmm3
movups xmm0, xmmword [rbp + 0x40]
movaps xmmword [0x1400ce300], xmm0
lea rcx, [0x1400ce2c0]
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov qword [rsp + 0x58], r15
mov rax, qword [0x1400ce2d8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], 0x15e
mov dword [rsp + 0x30], 0x258
mov dword [rsp + 0x28], 0x64
mov dword [rsp + 0x20], 0x64
mov r9d, 0x80000000
lea r8, [0x1400bcbb4]
mov rdx, qword [0x1400ce300]
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rbx, rax
mov qword [0x1400ce310], rax
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9]
mov rcx, rax
mov qword [0x1400ce320], rax
test rax, rax
je 0x140054df3
mov qword [0x1400ce370], r15
mov qword [0x1400ce37c], r15
mov dword [0x1400ce384], r15d
mov qword [0x1400ce38c], r15
mov dword [0x1400ce394], r15d
mov qword [0x1400ce3a4], r15
mov dword [0x1400ce398], 1
mov dword [0x1400ce388], 1
mov dword [0x1400ce378], r15d
mov dword [0x1400ce39c], 1
mov dword [0x1400ce3a0], 0x50
mov dword [0x1400ce3ac], 1
mov rax, qword [rax]
lea r8, [0x1400ce318]
mov qword [rsp + 0x30], r8
lea r8, [0x1400ce370]
mov qword [rsp + 0x28], r8
mov dword [rsp + 0x20], 0x40
mov r9, rbx
xor edx, edx
lea r8d, [rdx + 1]
call qword [rax + 0x80]
test eax, eax
js 0x140054dec
mov edx, 0xa
mov rcx, qword [0x1400ce310]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1400ce310]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rax, qword [0x1400ce260]
test rax, rax
je 0x140054583
inc dword [rax + 0xec]
mov rdx, qword [0x1400ce250]
mov ecx, 0x61d8
call fcn.14000a8f0
mov qword [rbp + 0xa0], rax
lea rcx, [rsp + 0x60]
mov qword [rbp + 0x90], rcx
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400545c0
xor edx, edx
mov rcx, rax
call fcn.140009c50
mov rcx, rax
jmp 0x1400545c3
mov rcx, r15
mov rax, qword [0x1400ce260]
test rax, rax
cmove rax, rcx
mov qword [0x1400ce260], rax
call fcn.140011520
mov rax, qword [0x1400ce260]
lea rcx, [rax + 8]
mov qword [0x1400ce2b0], rcx
add rax, 0x3778
mov qword [0x1400ce2b8], rax
or dword [rcx], 1
lea r9, [rbp + 0x90]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140086650]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov r12d, 0xffff
test eax, eax
js 0x140054a53
mov r9, qword [rbp + 0x90]
mov rdi, 0xffffffffffffffff
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x140054640
mov qword [rbp + 0xb0], r15
mov qword [rbp + 0xc0], r15
mov qword [rbp + 0xc8], 7
mov word [rbp + 0xb0], r15w
lea rcx, [rbp + 0xb0]
cmp rdx, 7
ja 0x14005469a
mov qword [rbp + 0xc0], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.14005aad0
mov word [rbp + rbx + 0xb0], r15w
jmp 0x1400546a0
call fcn.140007a00
nop
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, qword [0x1400ce2b0]
mov r14, qword [rax + 0x48]
call fcn.1400568d4
lea rcx, str.SegoeUI.ttf
mov qword [rbp + 0xa0], rcx
mov qword [rbp + 0xa8], 0xb
lea r8, [rbp + 0xa0]
mov edx, eax
lea rcx, [rbp + 0x70]
call fcn.140005af0
mov dword [rsp + 0x68], 0xf
lea rdx, [rbp + 0xb0]
lea rcx, [rbp + 0x50]
call fcn.140009470
mov dword [rsp + 0x68], 0x1f
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x50]
call fcn.140007770
lea rdx, [rbp]
lea rcx, [rbp + 0x50]
call fcn.140005d60
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14005472f
mov rbx, qword [rax]
mov qword [rbp + 0xa0], r15
lea r8, [rbp + 0xa0]
mov rcx, rbx
call fcn.14000b950
mov rsi, rax
test rax, rax
je 0x140054900
xorps xmm1, xmm1
xor eax, eax
movups xmmword [rsp + 0x70], xmm1
movups xmmword [rbp - 0x80], xmm1
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x40], xmm1
mov qword [rbp - 0x10], rax
mov byte [rsp + 0x7c], 1
mov dword [rbp - 0x78], 3
mov dword [rbp - 0x74], 1
mov dword [rbp - 0x4c], 0x7f7fffff
mov dword [rbp - 0x40], 0x3f800000
mov word [rbp - 0x3c], r12w
movaps xmm3, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0xd0], xmm3
movaps xmm4, xmmword [rbp - 0x80]
movaps xmmword [rbp + 0xe0], xmm4
movaps xmmword [rbp + 0xf0], xmm1
xorps xmm5, xmm5
movaps xmmword [rbp + 0x100], xmm5
movaps xmm6, xmmword [rbp - 0x50]
movaps xmmword [rbp + 0x110], xmm6
movaps xmm2, xmmword [rbp - 0x40]
movaps xmmword [rbp + 0x120], xmm2
xorps xmm7, xmm7
movaps xmmword [rbp + 0x130], xmm7
xorps xmm8, xmm8
movaps xmmword [rbp + 0x140], xmm8
movsd xmm9, qword [rbp - 0x10]
movsd qword [rbp + 0x150], xmm9
movdqa xmm0, xmm2
psrldq xmm0, 6
movd eax, xmm0
test al, al
jne 0x1400548a3
nop dword [rax]
inc rdi
cmp byte [rbx + rdi], 0
jne 0x140054810
add rdi, rbx
cmp rdi, rbx
jbe 0x140054838
lea rcx, [rdi - 1]
movzx eax, byte [rcx]
cmp al, 0x2f
je 0x140054838
cmp al, 0x5c
je 0x140054838
mov rdi, rcx
cmp rcx, rbx
ja 0x140054821
movsd xmm0, qword [0x1400bcd18]
movsd qword [rsp + 0x20], xmm0
mov r9, rdi
lea r8, str._s___.0fpx
mov edx, 0x28
lea rcx, [rbp + 0x126]
call fcn.14000b660
movsd xmm9, qword [rbp + 0x150]
movaps xmm8, xmmword [rbp + 0x140]
movaps xmm7, xmmword [rbp + 0x130]
movaps xmm2, xmmword [rbp + 0x120]
movaps xmm6, xmmword [rbp + 0x110]
movaps xmm5, xmmword [rbp + 0x100]
movaps xmm1, xmmword [rbp + 0xf0]
movaps xmm4, xmmword [rbp + 0xe0]
movaps xmm3, xmmword [rbp + 0xd0]
movaps xmmword [rsp + 0x70], xmm3
movaps xmmword [rbp - 0x80], xmm4
movaps xmmword [rbp - 0x70], xmm1
movaps xmmword [rbp - 0x60], xmm5
movaps xmmword [rbp - 0x50], xmm6
movaps xmmword [rbp - 0x40], xmm2
movaps xmmword [rbp - 0x30], xmm7
movaps xmmword [rbp - 0x20], xmm8
movsd qword [rbp - 0x10], xmm9
mov qword [rsp + 0x70], rsi
mov eax, dword [rbp + 0xa0]
mov dword [rsp + 0x78], eax
movss xmm0, dword [0x1400bcd98]
movss dword [rbp - 0x7c], xmm0
lea rax, [0x1400bba1c]
mov qword [rbp - 0x58], rax
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.14002eef0
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x14005493b
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054936
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054e88
call fcn.1400588a0
mov qword [rbp + 0x10], r15
mov qword [rbp + 0x18], 0xf
mov byte [rbp], 0
mov rdx, qword [rbp + 0x68]
cmp rdx, 8
jb 0x14005498b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054986
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054e8e
call fcn.1400588a0
movdqa xmm0, xmmword [0x1400bcec0]
movdqu xmmword [rbp + 0x60], xmm0
mov word [rbp + 0x50], r15w
mov rdx, qword [rbp + 0x88]
cmp rdx, 8
jb 0x1400549e0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400549db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054e94
call fcn.1400588a0
movdqa xmm0, xmmword [0x1400bcec0]
movdqu xmmword [rbp + 0x80], xmm0
mov word [rbp + 0x70], r15w
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x140054a3b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140054a36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140054e82
call fcn.1400588a0
movdqa xmm0, xmmword [0x1400bcec0]
movdqu xmmword [rbp + 0xc0], xmm0
mov word [rbp + 0xb0], r15w
xorps xmm6, xmm6
xor eax, eax
movups xmmword [rsp + 0x70], xmm6
movups xmmword [rbp - 0x80], xmm6
movups xmmword [rbp - 0x70], xmm6
movups xmmword [rbp - 0x50], xmm6
movups xmmword [rbp - 0x40], xmm6
mov qword [rbp - 0x10], rax
mov byte [rsp + 0x7c], 1
mov dword [rbp - 0x78], 3
mov dword [rbp - 0x74], 1
mov dword [rbp - 0x4c], 0x7f7fffff
mov dword [rbp - 0x40], 0x3f800000
mov word [rbp - 0x3c], r12w
mov byte [rbp - 0x48], 1
mov byte [rbp - 0x70], 1
mov rax, qword [0x1400ce2b0]
mov r14, qword [rax + 0x48]
mov rax, qword [0x1400ce260]
test rax, rax
je 0x140054abc
inc dword [rax + 0xec]
mov rdx, qword [0x1400ce250]
mov ecx, 0x317f8
call fcn.14000a8f0
mov rsi, rax
lea rax, [0x140099260]
mov qword [0x1400ce270], rax
lea rdi, [rsi + 0x317f8]
mov qword [0x1400ce278], rdi
mov qword [0x1400ce280], rsi
mov qword [0x1400ce288], rsi
lea rbx, [0x140099270]
mov rcx, rbx
call fcn.1400335d0
cmp rax, rbx
je 0x140054b29
nop
cmp qword [0x1400ce288], rdi
ja 0x140054b29
mov rbx, rax
mov rcx, rax
call fcn.1400335d0
cmp rax, rbx
jne 0x140054b10
movaps xmm0, xmmword [rsp + 0x70]
movaps xmmword [rbp + 0xd0], xmm0
movaps xmm2, xmmword [rbp - 0x80]
movaps xmm3, xmmword [rbp - 0x70]
movaps xmm4, xmmword [rbp - 0x50]
movaps xmm5, xmmword [rbp - 0x40]
movsd xmm1, qword [rbp - 0x10]
mov byte [rbp + 0xdc], 1
movaps xmm0, xmmword [rbp + 0xd0]
movaps xmmword [rbp + 0xd0], xmm0
movaps xmmword [rbp + 0xe0], xmm2
movaps xmmword [rbp + 0xf0], xmm3
movaps xmmword [rbp + 0x100], xmm6
movaps xmmword [rbp + 0x110], xmm4
movaps xmmword [rbp + 0x120], xmm5
movaps xmmword [rbp + 0x130], xmm6
movaps xmmword [rbp + 0x140], xmm6
movsd qword [rbp + 0x150], xmm1
mov qword [rbp + 0xd0], rsi
mov dword [rbp + 0xd8], 0x317f8
movss xmm0, dword [0x1400bcd78]
movss dword [rbp + 0xe4], xmm0
lea rax, [0x1400bcc04]
mov qword [rbp + 0x108], rax
lea rdx, [rbp + 0xd0]
mov rcx, r14
call fcn.14002eef0
mov rax, qword [0x1400ce2b8]
mov dword [rax + 0x74], 0x41200000
mov dword [rax + 0x80], 0x40a00000
mov dword [rax + 0x7c], 0x41200000
mov dword [rax + 0x44], 0x40400000
mov dword [rax + 0x88], 0x40400000
mov rax, qword [0x1400ce2b0]
mov qword [rax + 0x18], r15
mov rsi, qword [0x1400ce310]
mov rbx, qword [0x1400ce260]
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140054d6c
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140054d6c
mov rax, qword [0x1400ce260]
test rax, rax
je 0x140054c5b
inc dword [rax + 0xec]
mov rdx, qword [0x1400ce250]
mov ecx, 0x48
call fcn.14000a8f0
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140054c93
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
mov qword [rdi + 0x40], rax
jmp 0x140054c96
mov rdi, r15
mov qword [rbx + 0x90], rdi
lea rax, str.imgui_impl_win32
mov qword [rbx + 0x80], rax
or dword [rbx + 0xc], 6
mov qword [rdi], rsi
mov byte [rdi + 0x2d], 1
mov rax, qword [rbp + 0xa0]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0x90]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x1400ce260]
mov rcx, qword [rax + 0x4030]
mov rax, qword [rcx]
mov qword [rax + 0x28], rsi
lea rax, str.xinput1_4.dll
mov qword [rbp], rax
lea rax, str.xinput1_3.dll
mov qword [rbp + 8], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp + 0x10], rax
lea rax, str.xinput1_2.dll
mov qword [rbp + 0x18], rax
lea rax, str.xinput1_1.dll
mov qword [rbp + 0x20], rax
mov rbx, r15
mov rcx, qword [rbp + rbx*8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140054d40
inc rbx
cmp rbx, 5
jl 0x140054d22
jmp 0x140054d6c
mov qword [rdi + 0x30], rsi
lea rdx, str.XInputGetCapabilities
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x38], rax
lea rdx, str.XInputGetState
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x40], rax
mov rdi, qword [0x1400ce318]
mov rbx, qword [0x1400ce260]
test rbx, rbx
je 0x140054d85
inc dword [rbx + 0xec]
mov rdx, qword [0x1400ce250]
mov ecx, 0x28
call fcn.14000a8f0
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140054dc0
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], rcx
mov dword [rax + 0x20], 0x1388
mov dword [rax + 0x24], 0x2710
jmp 0x140054dc3
mov rax, r15
mov qword [rbx + 0x98], rax
lea rcx, str.imgui_impl_dx9
mov qword [rbx + 0x88], rcx
or dword [rbx + 0xc], 8
mov qword [rax], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov al, 1
jmp 0x140054e3e
mov rcx, qword [0x1400ce320]
mov rdx, qword [0x1400ce318]
test rdx, rdx
je 0x140054e16
mov rax, qword [rdx]
mov rcx, rdx
call qword [rax + 0x10]
mov qword [0x1400ce318], r15
mov rcx, qword [0x1400ce320]
test rcx, rcx
je 0x140054e28
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [0x1400ce320], r15
mov rdx, qword [0x1400ce2d8]
mov rcx, qword [0x1400ce300]
call qword [sym.imp.USER32.dll_UnregisterClassW]
xor al, al
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.140058630
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.14005f208
nop
call fcn.14005f208
nop
call fcn.14005f208
nop
call fcn.14005f208
int3