Function at 0x18005a880
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 [0x18009a028]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r9, rdx
mov r12, rcx
cmp byte [rcx + 0x30], 0
jne 0x18005b385
mov qword [rcx + 8], rdx
mov rax, qword [rdx]
lea r8, [rcx + 0x20]
lea rdx, [0x18008d9c8]
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, [0x18008bcd8]
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, [0x18005a450]
mov edx, 0xfffffffc
mov rcx, qword [r12]
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov qword [r12 + 0x18], rax
mov rbx, qword [0x18009b0f8]
test rbx, rbx
je 0x18005a97f
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 0x18005a9b2
xor edx, edx
mov rcx, rax
call fcn.180019600
nop
mov qword [0x18009b0f8], rax
call fcn.18001d860
mov r14, qword [0x18009b0f8]
test rbx, rbx
cmovne r14, rbx
mov qword [0x18009b0f8], r14
xor ecx, ecx
call fcn.180038fa0
mov rsi, qword [r12]
mov rbx, qword [0x18009b0f8]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x18005ab3d
lea rcx, [rbp + 0x180]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x18005ab3d
mov rax, qword [0x18009b0f8]
test rax, rax
je 0x18005aa21
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 0x18005aa53
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 0x18005aa55
xor edi, edi
mov qword [rbx + 0x98], rdi
lea rax, [0x18008ba48]
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 [0x18009b0f8]
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 0x18005ab11
inc rbx
cmp rbx, 5
jl 0x18005aaf0
jmp 0x18005ab3d
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 [0x18009b0f8]
test rdi, rdi
je 0x18005ab59
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 0x18005aba8
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 0x18005abae
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, [0x18008ba18]
mov rcx, rsi
call qword [rax]
test eax, eax
jne 0x18005ac46
mov rcx, qword [rbp + 0xf8]
mov rax, qword [rcx]
lea r8, [rbp + 0x100]
lea rdx, [0x18008ba28]
call qword [rax + 0x30]
test eax, eax
jne 0x18005ac46
mov rcx, qword [rbp + 0x100]
mov rax, qword [rcx]
lea r8, [rbp + 0x110]
lea rdx, [0x18008ba38]
call qword [rax + 0x30]
test eax, eax
jne 0x18005ac46
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 0x18005ac58
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x100]
test rcx, rcx
je 0x18005ac6a
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, [0x180065840]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x18005b37a
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x190]
call fcn.180010290
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, 0x151d2cd169077ba3
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
movabs rax, 0x401590652ff56ee8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
movabs rax, 0x61334dbc066f1ad7
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x1c0], rax
movabs r15, 0x401590652ff5089c
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 0x18005adb7
call fcn.180061a48
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.180001cc0
nop
lea r8, [rbp - 0x40]
lea rdx, [rbp + 0x190]
lea rcx, [rbp + 0xb0]
call fcn.180002160
nop
lea rdx, [rbp + 0x90]
mov rcx, rax
call fcn.18005a360
nop
cmp qword [rax + 0x18], 0x10
jb 0x18005ae14
mov rax, qword [rax]
lea rcx, [0x18008aaa0]
mov qword [rsp + 0x20], rcx
lea r9, [rbp]
movss xmm2, dword [0x18008e140]
mov rdx, rax
mov rcx, rsi
call fcn.18003d720
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x18005ae7c
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005ae77
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005ae77
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180062424
movdqa xmm0, xmmword [0x18008e1e0]
movdqu xmmword [rbp + 0xa0], xmm0
mov byte [rbp + 0x90], 0
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x18005aedc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005aed7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005aed7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180062424
movdqa xmm0, xmmword [0x18008e1c0]
movdqu xmmword [rbp + 0xc0], xmm0
mov word [rbp + 0xb0], r13w
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x18005af37
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005af32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005af32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180062424
movdqa xmm0, xmmword [0x18008e1c0]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r13w
mov byte [rbp + 0x48], 1
mov rsi, qword [r14 + 0x58]
movabs rax, 0x151d23c961037bba
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
movabs rax, 0x401590652ff56ee8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x58], rax
movabs rax, 0x61334dbc066f1ad7
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 0x18005afd0
call fcn.180061a48
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.180001cc0
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x60]
call fcn.180002160
nop
lea rdx, [rbp - 0x80]
mov rcx, rax
call fcn.18005a360
nop
cmp qword [rax + 0x18], 0x10
jb 0x18005b029
mov rax, qword [rax]
lea rcx, [0x18008b530]
mov qword [rsp + 0x20], rcx
lea r9, [rbp]
movss xmm2, dword [rbp + 0x14]
mov rdx, rax
mov rcx, rsi
call fcn.18003d720
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x18005b088
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005b083
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005b083
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180062424
movdqa xmm0, xmmword [0x18008e1e0]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x18005b0dc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005b0d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005b0d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180062424
movdqa xmm0, xmmword [0x18008e1c0]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], r13w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18005b133
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005b12e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005b12e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180062424
movdqa xmm0, xmmword [0x18008e1c0]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r13w
mov rdi, qword [r14 + 0x58]
movabs rax, 0x24739926e1669ba
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, 0x61334dbc066f1ad7
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 0x18005b1c2
call fcn.180061a48
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.180001cc0
nop
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x190]
lea rcx, [rbp - 0x80]
call fcn.180002160
nop
lea rdx, [rbp - 0x60]
mov rcx, rax
call fcn.18005a360
nop
cmp qword [rax + 0x18], 0x10
jb 0x18005b226
mov rax, qword [rax]
lea rcx, [0x18008b508]
mov qword [rsp + 0x20], rcx
lea r9, [rbp]
movss xmm2, dword [rbp + 0x14]
mov rdx, rax
mov rcx, rdi
call fcn.18003d720
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x18005b285
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005b280
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005b280
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180062424
movdqa xmm0, xmmword [0x18008e1e0]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x18005b2d9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005b2d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005b2d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180062424
movdqa xmm0, xmmword [0x18008e1c0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], r13w
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x18005b331
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005b32b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005b32b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180062424
nop
mov rdx, qword [rbp + 0x1a8]
cmp rdx, 8
jb 0x18005b37a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x190]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005b375
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005b375
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180062424
call fcn.18005a540
mov byte [r12 + 0x30], 1
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.180062040
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