Function at 0x18005b6c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x180098028]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r9, rdx
mov r12, rcx
cmp byte [rcx + 0x30], 0
jne 0x18005c1c5
mov qword [rcx + 8], rdx
mov rax, qword [rdx]
lea r8, [rcx + 0x20]
lea rdx, [0x18008ba28]
mov rcx, r9
call qword [rax + 0x38]
mov rcx, qword [r12 + 0x20]
mov rax, qword [rcx]
lea rdx, [r12 + 0x28]
call qword [rax + 0x140]
mov rcx, qword [r12 + 8]
mov rax, qword [rcx]
lea rdx, [rbp + 0x130]
call qword [rax + 0x60]
mov rax, qword [rbp + 0x160]
mov qword [r12], rax
mov rcx, qword [r12 + 8]
mov rax, qword [rcx]
lea r9, [rbp + 0x108]
lea r8, [0x180089cd8]
xor edx, edx
call qword [rax + 0x48]
mov rcx, qword [r12 + 0x20]
mov rax, qword [rcx]
lea r9, [r12 + 0x10]
xor r8d, r8d
mov rdx, qword [rbp + 0x108]
call qword [rax + 0x48]
mov rcx, qword [rbp + 0x108]
mov rax, qword [rcx]
call qword [rax + 0x10]
lea r8, [0x18005b290]
mov edx, 0xfffffffc
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov qword [r12 + 0x18], rax
mov rbx, qword [0x1800990f8]
test rbx, rbx
je 0x18005b7bf
inc dword [rbx + 0xf4]
mov ecx, 0x5e28
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x39]
mov qword [rbp + 0x180], rcx
mov qword [rbp + 0x1b0], rax
test rax, rax
je 0x18005b7f2
xor edx, edx
mov rcx, rax
call fcn.180019610
nop
mov qword [0x1800990f8], rax
call fcn.18001d870
mov r14, qword [0x1800990f8]
test rbx, rbx
cmovne r14, rbx
mov qword [0x1800990f8], r14
xor ecx, ecx
call fcn.180038fb0
mov rsi, qword [r12]
mov rbx, qword [0x1800990f8]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18005b97d
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18005b97d
mov rax, qword [0x1800990f8]
test rax, rax
je 0x18005b861
inc dword [rax + 0xf4]
mov ecx, 0x48
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18005b893
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 0x18005b895
xor edi, edi
mov qword [rbx + 0x98], rdi
lea rax, [0x180089a48]
mov qword [rbx + 0x88], rax
or dword [rbx + 0xc], 6
mov qword [rdi], rsi
mov rax, qword [rbp + 0x1b0]
mov qword [rdi + 0x20], rax
mov rax, qword [rbp + 0x180]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
mov rax, qword [0x1800990f8]
mov rax, qword [rax + 0x48a8]
mov rcx, qword [rax]
mov qword [rcx + 0x28], rsi
mov byte [rdi + 0x2d], 1
lea rax, str.xinput1_4.dll
mov qword [rbp + 0xd0], rax
lea rax, str.xinput1_3.dll
mov qword [rbp + 0xd8], rax
lea rax, str.xinput9_1_0.dll
mov qword [rbp + 0xe0], rax
lea rax, str.xinput1_2.dll
mov qword [rbp + 0xe8], rax
lea rax, str.xinput1_1.dll
mov qword [rbp + 0xf0], rax
xor ebx, ebx
nop
mov rcx, qword [rbp + rbx*8 + 0xd0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x18005b951
inc rbx
cmp rbx, 5
jl 0x18005b930
jmp 0x18005b97d
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 r15, qword [r12 + 0x28]
mov rsi, qword [r12 + 0x20]
mov rdi, qword [0x1800990f8]
test rdi, rdi
je 0x18005b999
inc dword [rdi + 0xf4]
mov ecx, 0x78
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18005b9e8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
movups xmmword [rbx + 0x60], xmm0
mov qword [rbx + 0x70], rax
mov dword [rbx + 0x70], 0x1388
mov dword [rbx + 0x74], 0x2710
xor r13d, r13d
jmp 0x18005b9ee
xor r13d, r13d
mov ebx, r13d
mov qword [rdi + 0xa0], rbx
lea rax, str.imgui_impl_dx11
mov qword [rdi + 0x90], rax
or dword [rdi + 0xc], 8
mov qword [rbp + 0xf8], r13
mov qword [rbp + 0x100], r13
mov qword [rbp + 0x110], r13
mov rax, qword [rsi]
lea r8, [rbp + 0xf8]
lea rdx, [0x180089a18]
mov rcx, rsi
call qword [rax]
test eax, eax
jne 0x18005ba86
mov rcx, qword [rbp + 0xf8]
mov rax, qword [rcx]
lea r8, [rbp + 0x100]
lea rdx, [0x180089a28]
call qword [rax + 0x30]
test eax, eax
jne 0x18005ba86
mov rcx, qword [rbp + 0x100]
mov rax, qword [rcx]
lea r8, [rbp + 0x110]
lea rdx, [0x180089a38]
call qword [rax + 0x30]
test eax, eax
jne 0x18005ba86
mov qword [rbx], rsi
mov qword [rbx + 8], r15
mov rax, qword [rbp + 0x110]
mov qword [rbx + 0x10], rax
mov rcx, qword [rbp + 0xf8]
test rcx, rcx
je 0x18005ba98
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x100]
test rcx, rcx
je 0x18005baaa
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 8]
mov qword [r14 + 0x20], r13
mov qword [r14 + 0x28], r13
or dword [r14 + 8], 0x20
lea r9, [rbp + 0x120]
xor r8d, r8d
xor edx, edx
lea rcx, [0x180063840]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x18005c1ba
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x190]
call fcn.1800102a0
nop
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rax
mov byte [rbp + 0xc], 1
mov dword [rbp + 0x18], 3
mov dword [rbp + 0x1c], 1
mov dword [rbp + 0x44], 0x7f7fffff
mov dword [rbp + 0x50], 0x3f800000
mov eax, 0xffff
mov word [rbp + 0x54], ax
mov dword [rbp + 0x14], 0x41700000
mov rsi, qword [r14 + 0x58]
movabs rax, 0x60b60bd23d5c159d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movabs rax, 0x90acbf52c74140a2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
movabs rax, 0x14986abf523474e9
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x1c0], rax
movabs r15, 0x90acbf52c74126d6
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x1c8], rax
movdqa xmm0, xmmword [rsp + 0x40]
pxor xmm0, xmmword [rbp + 0x1c0]
movdqa xmmword [rsp + 0x40], xmm0
lea rax, [rsp + 0x40]
mov rbx, 0xffffffffffffffff
mov rdi, rbx
inc rdi
cmp byte [rax + rdi], 0
jne 0x18005bbf7
call fcn.18005edcc
lea rcx, [rsp + 0x40]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rdi
lea r8, [rbp - 0x20]
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.180001cd0
nop
lea r8, [rbp - 0x40]
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0xb0]
call fcn.180002170
nop
lea rdx, [rbp + 0x90]
mov rcx, rax
call fcn.18005b1a0
nop
cmp qword [rax + 0x18], 0x10
jb 0x18005bc54
mov rax, qword [rax]
lea rcx, [0x180088aa0]
mov qword [rsp + 0x20], rcx
lea r9, [rbp]
movss xmm2, dword [0x18008c1a4]
mov rdx, rax
mov rcx, rsi
call fcn.18003d730
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x18005bcbc
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bcb7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005bcb7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005f794
movdqa xmm0, xmmword [0x18008c260]
movdqu xmmword [rbp + 0xa0], xmm0
mov byte [rbp + 0x90], 0
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x18005bd1c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bd17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005bd17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005f794
movdqa xmm0, xmmword [0x18008c240]
movdqu xmmword [rbp + 0xc0], xmm0
mov word [rbp + 0xb0], r13w
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x18005bd77
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bd72
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005bd72
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005f794
movdqa xmm0, xmmword [0x18008c240]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r13w
mov byte [rbp + 0x48], 1
mov rsi, qword [r14 + 0x58]
movabs rax, 0x60b604ca35581584
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
movabs rax, 0x90acbf52c74140a2
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
movabs rax, 0x14986abf523474e9
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x1d0], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x1d8], rax
movdqa xmm0, xmmword [rsp + 0x50]
pxor xmm0, xmmword [rbp + 0x1d0]
movdqa xmmword [rsp + 0x50], xmm0
lea rax, [rsp + 0x50]
mov rdi, rbx
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x18005be10
call fcn.18005edcc
lea rcx, [rsp + 0x50]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], rdi
lea r8, [rbp - 0x10]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.180001cd0
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x60]
call fcn.180002170
nop
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.18005b1a0
nop
cmp qword [rax + 0x18], 0x10
jb 0x18005be69
mov rax, qword [rax]
lea rcx, [0x180089530]
mov qword [rsp + 0x20], rcx
lea r9, [rbp]
movss xmm2, dword [rbp + 0x14]
mov rdx, rax
mov rcx, rsi
call fcn.18003d730
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x18005bec8
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bec3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005bec3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005f794
movdqa xmm0, xmmword [0x18008c260]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x18005bf1c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bf17
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005bf17
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005f794
movdqa xmm0, xmmword [0x18008c240]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], r13w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18005bf73
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005bf6e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005bf6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005f794
movdqa xmm0, xmmword [0x18008c240]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r13w
mov rdi, qword [r14 + 0x58]
movabs rax, 0x77ec1e913a4d0784
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x180], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x188], rax
movabs rax, 0x14986abf523474e9
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x1b0], rax
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x1b8], rax
movdqa xmm0, xmmword [rbp + 0x180]
pxor xmm0, xmmword [rbp + 0x1b0]
movdqa xmmword [rbp + 0x180], xmm0
lea rax, [rbp + 0x180]
inc rbx
cmp byte [rax + rbx], 0
jne 0x18005c002
call fcn.18005edcc
lea rcx, [rbp + 0x180]
mov qword [rbp + 0x110], rcx
mov qword [rbp + 0x118], rbx
lea r8, [rbp + 0x110]
mov edx, eax
lea rcx, [rsp + 0x60]
call fcn.180001cd0
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x80]
call fcn.180002170
nop
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.18005b1a0
nop
cmp qword [rax + 0x18], 0x10
jb 0x18005c066
mov rax, qword [rax]
lea rcx, [0x180089508]
mov qword [rsp + 0x20], rcx
lea r9, [rbp]
movss xmm2, dword [rbp + 0x14]
mov rdx, rax
mov rcx, rdi
call fcn.18003d730
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x18005c0c5
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005c0c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005c0c0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005f794
movdqa xmm0, xmmword [0x18008c260]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x18005c119
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005c114
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005c114
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005f794
movdqa xmm0, xmmword [0x18008c240]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r13w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18005c171
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005c16b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005c16b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005f794
nop
mov rdx, qword [rbp + 0x1a8]
cmp rdx, 8
jb 0x18005c1ba
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005c1b5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005c1b5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005f794
call fcn.18005b380
mov byte [r12 + 0x30], 1
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.18005f3b0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret