Function at 0x1400a8590
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x4e0
mov rax, qword [0x1402d9040]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov r14, rcx
mov qword [rsp + 0x100], rcx
xor r15d, r15d
mov dword [rsp + 0x48], r15d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], r15b
movups xmmword [rcx + 0x20], xmm0
mov qword [rcx + 0x30], r15
mov qword [rcx + 0x38], reloc.WS2_32.dll_ntohs
mov byte [rcx + 0x20], r15b
mov dword [rcx + 0x40], r15d
movups xmmword [rcx + 0x48], xmm0
mov qword [rcx + 0x58], r15
mov qword [rcx + 0x60], 7
mov word [rcx + 0x48], r15w
lea rbx, [rcx + 0x68]
mov qword [rsp + 0x38], rbx
lea rax, [0x140220340]
mov qword [rbx], rax
lea rcx, [rbx + 0xa8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x48], 1
lea rdi, [rbx + 8]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rcx + rbx], rax
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rcx + rbx - 4], edx
mov qword [rsp + 0x378], rdi
mov rcx, rdi
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_filebuf_char__struct_std::char_traits_char__.0
mov qword [rdi], rax
mov byte [rdi + 0x7c], r15b
mov byte [rdi + 0x71], r15b
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rdi + 0x80], r15
mov rax, qword [0x1402db840]
mov qword [rdi + 0x74], rax
mov qword [rdi + 0x68], r15
lea rax, [rsp + 0x3c0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [rsp + 0xc0], eax
test eax, eax
jne 0x1400a8c6a
lea rax, [rsp + 0x3c0]
mov qword [rsp + 0x1b0], rax
lea rcx, [rsp + 0x3c0]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1400a8700
mov qword [rsp + 0x1b8], rax
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x2a0]
call fcn.1400712e0
mov dword [rsp + 0x48], 5
lea rdx, [rsp + 0x2a0]
lea rcx, [r14 + 0x48]
call fcn.140090fe0
lea rcx, [rsp + 0x2a0]
call fcn.140061450
mov dword [rsp + 0x50], 0x64a9caac
mov dword [rsp + 0x54], 0x6951fb4c
mov dword [rsp + 0x58], 0xebf24462
mov word [rsp + 0x5c], 0x5183
mov qword [rsp + 0x38], r15
mov rax, qword [rsp + 0x38]
nop word [rax + rax]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
movzx edx, byte [rsp + rcx + 0x50]
sub dl, byte [rsp + rax + 0x57]
mov byte [rsp + 0x30], dl
movzx ecx, byte [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov byte [rsp + rax + 0x388], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp rax, 7
jb 0x1400a8780
xorps xmm0, xmm0
movups xmmword [rsp + 0x120], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x130], xmm1
mov r8d, 6
lea rdx, [rsp + 0x388]
lea rcx, [rsp + 0x120]
call fcn.14004a1a0
nop
lea rax, [rsp + 0x120]
cmp qword [rsp + 0x138], 0xf
cmova rax, qword [rsp + 0x120]
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x130]
mov qword [rsp + 0x1c8], rax
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0x260]
call fcn.1400712e0
mov dword [rsp + 0x48], 0x1d
lea rdx, [rsp + 0x260]
lea rcx, [r14 + 0x48]
call fcn.140048b30
nop
lea rcx, [rsp + 0x260]
call fcn.140061450
nop
lea rcx, [rsp + 0x120]
call fcn.1400614c0
nop
lea rcx, [r14 + 0x48]
call fcn.14008d7e0
test al, al
jne 0x1400a88a2
lea rcx, [r14 + 0x48]
cmp qword [r14 + 0x60], 7
jbe 0x1400a888c
mov rcx, qword [r14 + 0x48]
call fcn.14016ab08
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x1400a8cfc
jmp 0x1400a8921
lea rdx, [r14 + 0x48]
lea rcx, [rsp + 0x2d8]
call fcn.14008d870
movsd xmm0, qword [rax]
movsd qword [rsp + 0x38], xmm0
mov edx, dword [rax + 8]
mov ecx, dword [rsp + 0x38]
test edx, edx
je 0x1400a88d6
lea eax, [rcx - 1]
test eax, 0xfffffff7
jne 0x1400a8d10
cmp ecx, 3
je 0x1400a8921
lea rcx, [r14 + 0x48]
cmp qword [r14 + 0x60], 7
jbe 0x1400a88ea
mov rcx, qword [r14 + 0x48]
call fcn.14016af00
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x1400a8d20
lea rcx, [r14 + 0x48]
cmp qword [r14 + 0x60], 7
jbe 0x1400a890d
mov rcx, qword [r14 + 0x48]
call fcn.14016ab08
mov rdx, rax
shr rax, 0x20
test eax, eax
jne 0x1400a8d34
mov dword [rsp + 0x60], 0x149cea00
mov dword [rsp + 0x64], 0xb4986462
mov dword [rsp + 0x68], 0xfdb03b7b
mov word [rsp + 0x6c], 0x98f2
mov qword [rsp + 0x38], r15
mov rax, qword [rsp + 0x38]
nop word [rax + rax]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
movzx edx, byte [rsp + rcx + 0x60]
sub dl, byte [rsp + rax + 0x67]
mov byte [rsp + 0x30], dl
movzx ecx, byte [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov byte [rsp + rax + 0x380], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp rax, 7
jb 0x1400a8950
xorps xmm0, xmm0
movups xmmword [rsp + 0x160], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x170], xmm1
mov r8d, 6
lea rdx, [rsp + 0x380]
lea rcx, [rsp + 0x160]
call fcn.14004a1a0
mov dword [rsp + 0x48], 0x3d
lea rax, [rsp + 0x160]
cmp qword [rsp + 0x178], 0xf
cmova rax, qword [rsp + 0x160]
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x1d8], rax
movups xmm0, xmmword [rsp + 0x1d0]
movups xmmword [rsp + 0x228], xmm0
movabs rax, 0xc000000000000000
mov qword [rsp + 0x220], rax
mov qword [rsp + 0x1e0], 1
lea rax, [rsp + 0x220]
mov qword [rsp + 0x1e8], rax
mov dword [rsp + 0x70], 0x1c69f82f
mov dword [rsp + 0x74], 0xb498596c
mov dword [rsp + 0x78], 0xfdb03b7b
mov word [rsp + 0x7c], 0x98f2
mov qword [rsp + 0x38], r15
mov rax, qword [rsp + 0x38]
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x38]
movzx edx, byte [rsp + rcx + 0x70]
sub dl, byte [rsp + rax + 0x77]
mov byte [rsp + 0x30], dl
movzx ecx, byte [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov byte [rsp + rax + 0x378], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp rax, 7
jb 0x1400a8a70
xorps xmm0, xmm0
movups xmmword [rsp + 0x140], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x150], xmm1
mov r8d, 6
lea rdx, [rsp + 0x378]
lea rcx, [rsp + 0x140]
call fcn.14004a1a0
mov dword [rsp + 0x48], Ordinal_127
lea rax, [rsp + 0x140]
cmp qword [rsp + 0x158], 0xf
cmova rax, qword [rsp + 0x140]
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x1a8], rax
movaps xmm0, xmmword [rsp + 0x1e0]
movdqa xmmword [rsp + 0x250], xmm0
movaps xmm1, xmmword [rsp + 0x1a0]
movdqa xmmword [rsp + 0x240], xmm1
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x318]
call fcn.140064740
nop
mov rcx, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x1400a8b6a
mov rax, qword [rax]
mov qword [rsp + 0x1f0], rax
mov qword [rsp + 0x1f8], rcx
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x280]
call fcn.1400712e0
mov dword [rsp + 0x48], reloc.WLDAP32.dll_Ordinal_127
lea rcx, [r14 + 0x48]
lea rdx, [rsp + 0x280]
call fcn.140048b30
nop
lea rcx, [rsp + 0x280]
call fcn.140061450
nop
lea rcx, [rsp + 0x318]
call fcn.1400614c0
nop
lea rcx, [rsp + 0x140]
call fcn.1400614c0
nop
lea rcx, [rsp + 0x160]
call fcn.1400614c0
lea rdx, [r14 + 0x48]
cmp qword [rdx + 0x18], 7
jbe 0x1400a8bee
mov rdx, qword [rdx]
lea rcx, [r14 + 0x70]
mov r8d, reloc.WS2_32.dll_select
call fcn.140092660
mov rdx, rax
mov rax, qword [r14 + 0x68]
movsxd rcx, dword [rax + 4]
add rcx, 0x68
xor r8d, r8d
add rcx, r14
test rdx, rdx
je 0x1400a8c21
xor edx, edx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool____ptr64]
jmp 0x1400a8c2d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
jmp 0x1400a8c37
mov qword [0x1402db5b8], r14
mov rax, r14
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.14016b380
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x2e8]
call fcn.1400a8d50
mov rdx, rax
lea rcx, [rsp + 0x2f8]
call fcn.1400a95f0
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0xd0], xmm0
lea rdx, str.Failed_to_get_documents_path:_
lea rcx, [rsp + 0x308]
call fcn.140049fb0
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x110], xmm0
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0x358]
call fcn.140064740
nop
mov rdx, rax
lea rcx, [rsp + 0x2c0]
call fcn.140046a10
lea rdx, [0x1402d4298]
lea rcx, [rsp + 0x2c0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
shr rdx, 0x20
lea r8, [r14 + 0x48]
lea rcx, str.create_directory
call fcn.14008d710
lea r8, [r14 + 0x48]
lea rcx, str.status
call fcn.14008d710
shr rdx, 0x20
lea r8, [r14 + 0x48]
lea rcx, [0x140220484]
call fcn.14008d710
shr rdx, 0x20
lea r8, [r14 + 0x48]
lea rcx, str.create_directory
call fcn.14008d710
int3