Function at 0x140007160
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x140032040]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov rdi, rcx
mov qword [rsp + 0x70], rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x1b0]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x1400295e0]
mov qword [rbp + 0x1b0], rax
lea rax, [0x1400293e0]
mov qword [rbp + 0x1c0], rax
lea rcx, [rbp + 0x248]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov r14d, 8
mov dword [rsp + 0x40], r14d
xor r8d, r8d
lea rdx, [rbp + 0x1c8]
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x1b0], r12
mov rax, qword [rbp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x1ac], edx
lea rcx, [rbp + 0x1c8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x1c8], rax
mov qword [rbp + 0x230], r15
mov dword [rbp + 0x238], r15d
lea rax, [rbp + 0x2b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x28
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x140007753
xorps xmm0, xmm0
movups xmmword [rbp + 0x160], xmm0
mov qword [rbp + 0x170], r15
mov qword [rbp + 0x178], r15
lea rax, [rbp + 0x2b0]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400072b0
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp + 0x160]
call fcn.140004410
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x198], xmm0
mov qword [rbp + 0x1a8], rax
lea rdx, [0x1400269c0]
lea rcx, [rbp + 0x60]
call fcn.140006710
nop
lea rdx, [0x1400269d0]
lea rcx, [rbp + 0x80]
call fcn.140006710
nop
lea rdx, [0x1400269e0]
lea rcx, [rbp + 0xa0]
call fcn.140006710
nop
movabs rbx, 0x7fffffffffffffff
mov rax, rbx
mov rcx, qword [rbp + 0x170]
sub rax, rcx
cmp rax, 0xe
jb 0x1400078aa
lea r9, [rbp + 0x160]
cmp qword [rbp + 0x178], 0xf
cmova r9, qword [rbp + 0x160]
mov qword [rsp + 0x30], 0xe
lea rax, str.AppDataLocal
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0xc0]
call fcn.140015890
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0xf0], xmm1
mov r8d, 7
lea rdx, str.C:_temp
lea rcx, [rbp + 0xe0]
call fcn.140004410
nop
mov rax, rbx
mov rcx, qword [rbp + 0x170]
sub rax, rcx
cmp rax, 8
jb 0x1400078b0
lea r9, [rbp + 0x160]
cmp qword [rbp + 0x178], 0xf
cmova r9, qword [rbp + 0x160]
mov qword [rsp + 0x30], 8
lea rax, str.Desktop
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x100]
call fcn.140015890
nop
mov rax, rbx
mov rcx, qword [rbp + 0x170]
sub rax, rcx
cmp rax, 0xa
jb 0x1400078b6
lea r9, [rbp + 0x160]
cmp qword [rbp + 0x178], 0xf
cmova r9, qword [rbp + 0x160]
mov qword [rsp + 0x30], 0xa
lea rax, str.Documents
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x120]
call fcn.140015890
nop
mov rax, qword [rbp + 0x170]
sub rbx, rax
cmp rbx, 0xa
jb 0x1400078a4
lea r9, [rbp + 0x160]
cmp qword [rbp + 0x178], 0xf
cmova r9, qword [rbp + 0x160]
mov qword [rsp + 0x30], 0xa
lea rcx, str.Downloads
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x140]
call fcn.140015890
mov r14d, 0xf8
lea rax, [rbp + 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x160]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x198]
call fcn.140004510
nop
lea r9, [fcn.140011790]
mov edx, 0x20
mov r8d, 8
lea rcx, [rbp + 0x60]
call fcn.140022524
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x180], xmm0
mov qword [rbp + 0x190], rax
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x70], xmm1
mov r8d, 4
lea rdx, str..doc
lea rcx, [rbp - 0x80]
call fcn.140004410
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x50], xmm1
mov r8d, 5
lea rdx, str..docx
lea rcx, [rbp - 0x60]
call fcn.140004410
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm1
mov r8d, 4
lea rdx, str..txt
lea rcx, [rbp - 0x40]
call fcn.140004410
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x10], xmm1
mov r8d, 5
lea rdx, str..json
lea rcx, [rbp - 0x20]
call fcn.140004410
nop
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x10], xmm1
mov r8d, 4
lea rdx, str..csv
lea rcx, [rbp]
call fcn.140004410
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x30], xmm1
mov r8d, 5
lea rdx, str..xlsm
lea rcx, [rbp + 0x20]
call fcn.140004410
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x40], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x50], xmm1
mov r8d, 4
lea rdx, str..pdf
lea rcx, [rbp + 0x40]
call fcn.140004410
nop
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x180]
call fcn.140004510
nop
lea r9, [fcn.140011790]
mov edx, 0x20
mov r8d, 7
lea rcx, [rbp - 0x80]
call fcn.140022524
mov rbx, qword [rbp + 0x198]
mov rsi, qword [rbp + 0x1a0]
cmp rbx, rsi
je 0x1400076ec
nop dword [rax]
cmp qword [rbx + 0x10], 0
je 0x1400076e3
lea r8, [rbp + 0x180]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140006a20
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x14000769a
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x1c0]
call fcn.140018150
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1400076e3
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400076de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007745
call fcn.140022240
add rbx, 0x20
cmp rbx, rsi
jne 0x140007670
lea rcx, [rbp + 0x180]
call fcn.140010d20
nop
lea rcx, [rbp + 0x198]
call fcn.140010d20
nop
mov rdx, qword [rbp + 0x178]
cmp rdx, 0xf
jbe 0x140007777
inc rdx
mov rcx, qword [rbp + 0x160]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000774c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000774c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140022240
jmp 0x140007777
lea rdx, str.Failed_to_get_user_profile_path.
lea rcx, [rbp + 0x1c0]
call fcn.140012ec0
lea rdx, [0x140013090]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
or r14d, 4
mov dword [rsp + 0x40], r14d
movups xmmword [rbp + 0x180], xmm0
mov ecx, dword [rbp + 0x238]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400077d7
mov rax, qword [rbp + 0x208]
mov r8, qword [rax]
test r8, r8
je 0x1400077d7
mov rax, qword [rbp + 0x1e8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x230]
cmovb r8, qword [rbp + 0x230]
sub r8, rdx
jmp 0x140007815
test cl, 4
jne 0x140007807
mov rax, qword [rbp + 0x200]
mov rcx, qword [rax]
test rcx, rcx
je 0x140007807
mov rax, qword [rbp + 0x1e0]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x218]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140007815
mov r8, qword [rbp + 0x188]
mov rdx, qword [rbp + 0x180]
test rdx, rdx
je 0x140007823
mov rcx, rdi
call fcn.140012970
nop
mov rcx, qword [rbp + 0x1b0]
movsxd rdx, dword [rcx + 4]
mov qword [rbp + rdx + 0x1b0], r12
mov rcx, qword [rbp + 0x1b0]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rbp + rdx + 0x1ac], r8d
lea rcx, [rbp + 0x1c8]
call fcn.140011520
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x248]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, rdi
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140022220
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400013c0
nop
call fcn.1400013c0
nop
call fcn.1400013c0
nop
call fcn.1400013c0
int3