Function at 0x180015644
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x1800b13a8]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rsi, rdx
mov rdi, rcx
mov qword [rbp - 0x28], rcx
xor r14d, r14d
lea rax, [rbp + 0x110]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r14 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea r15d, [r14 + 0xf]
mov r13d, 0x1000
test eax, eax
js 0x180015c59
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp]
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r15
mov byte [rbp - 0x20], r14b
lea rax, [rbp + 0x110]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r14b
jne 0x1800156df
lea rcx, [rbp - 0x20]
cmp rbx, r15
ja 0x18001570c
mov qword [rbp - 0x10], rbx
mov r8, rbx
lea rdx, [rbp + 0x110]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov byte [rbp + rbx - 0x20], r14b
jmp 0x18001571c
lea r9, [rbp + 0x110]
mov rdx, rbx
call fcn.1800894b4
nop
mov r8d, 1
lea rdx, [0x180099184]
lea rcx, [rbp - 0x20]
call fcn.18007716c
mov rbx, rax
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r14
mov r8d, 0x20
mov rdx, rax
lea rcx, [rbp - 0x50]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r15
mov byte [rbx], r14b
mov r8d, 8
lea rdx, str.Purgegta
lea rcx, [rbp - 0x50]
call fcn.18007716c
mov rbx, rax
mov qword [rbp - 0x70], r14
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r14
mov r8d, 0x20
mov rdx, rax
lea rcx, [rbp - 0x70]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r15
mov byte [rbx], r14b
mov r8d, 1
lea rdx, [0x180099184]
lea rcx, [rbp - 0x70]
call fcn.18007716c
mov rbx, rax
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r14
mov r8d, 0x20
mov rdx, rax
lea rcx, [rsp + 0x70]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r15
mov byte [rbx], r14b
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1800157f4
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
lea rcx, [rsp + 0x70]
call fcn.18007716c
mov rbx, rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov r8d, 0x20
mov rdx, rax
lea rcx, [rsp + 0x50]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r15
mov byte [rbx], r14b
mov r8d, 4
lea rdx, str..txt
lea rcx, [rsp + 0x50]
call fcn.18007716c
mov rbx, rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r14
mov r8d, 0x20
mov rdx, rax
lea rcx, [rsp + 0x30]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r15
mov byte [rbx], r14b
lea rdx, [rsp + 0x30]
lea rcx, [rbp]
call fcn.180075c4c
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1800158c6
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, r13
jb 0x1800158c1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800158c1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008e060
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], r15
mov byte [rsp + 0x30], r14b
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x180015911
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, r13
jb 0x18001590c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001590c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008e060
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r15
mov byte [rsp + 0x50], r14b
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x18001595b
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, r13
jb 0x180015956
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015956
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008e060
mov qword [rbp - 0x80], r14
mov qword [rbp - 0x78], r15
mov byte [rsp + 0x70], r14b
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x1800159a2
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, r13
jb 0x18001599d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001599d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008e060
mov qword [rbp - 0x60], r14
mov qword [rbp - 0x58], r15
mov byte [rbp - 0x70], r14b
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x1800159e8
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, r13
jb 0x1800159e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800159e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008e060
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r15
mov byte [rbp - 0x50], r14b
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x180015a2e
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, r13
jb 0x180015a29
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015a29
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008e060
cmp qword [rbp + 0x90], r14
je 0x180015c12
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r15
mov byte [rbp - 0x20], r14b
mov rdx, qword [rsi + 8]
mov rcx, qword [rsi]
call fcn.180089288
mov rax, qword [rsi]
mov qword [rsi + 8], rax
jmp 0x180015a8c
mov rax, qword [rsi + 8]
cmp rax, qword [rsi + 0x10]
je 0x180015a7d
lea rdx, [rbp - 0x20]
mov rcx, rax
call fcn.180076924
add qword [rsi + 8], 0x20
jmp 0x180015a8c
lea r8, [rbp - 0x20]
mov rdx, rax
mov rcx, rsi
call fcn.180089300
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
mov dl, 0xa
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov r8b, al
lea rdx, [rbp - 0x20]
lea rcx, [rbp]
call fcn.180089e3c
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x180015a60
cmp qword [rbp + 0x90], r14
je 0x180015af0
lea rsi, [rbp + 0x10]
lea rcx, [rbp + 0x10]
call fcn.180076cb0
neg al
sbb rbx, rbx
and rbx, rsi
mov rcx, qword [rbp + 0x90]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test eax, eax
je 0x180015af3
mov rbx, r14
mov byte [rbp + 0x8c], r14b
mov byte [rbp + 0x81], r14b
lea rcx, [rbp + 0x10]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp + 0x90], r14
mov rax, qword [0x1800c30b0]
mov qword [rbp + 0x84], rax
mov qword [rbp + 0x78], r14
test rbx, rbx
jne 0x180015b45
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, [rbp]
add rcx, rax
xor r8d, r8d
lea edx, [rbx + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x180015b7f
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, r13
jb 0x180015b7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180015b7a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008e060
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], r15
mov byte [rbp - 0x20], r14b
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 0x10]
call fcn.180075ba4
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x180015c04
inc rdx
mov rcx, qword [rdi]
cmp rdx, r13
jb 0x180015bff
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180015c0b
mov rcx, r8
call fcn.18008e060
mov al, 1
jmp 0x180015c8d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 0x10]
call fcn.180075ba4
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0xb0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x180015c8b
inc rdx
mov rcx, qword [rdi]
cmp rdx, r13
jb 0x180015c86
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180015cc3
mov rcx, r8
call fcn.18008e060
xor al, al
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], r15
mov byte [rdi], r14b
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.18008e040
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3