Function at 0x1400a5870
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x2e8]
sub rsp, 0x3e0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x14018e080]
xor rax, rsp
mov qword [rbp + 0x2c0], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor esi, esi
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 0x10]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x70], xmm1
lea rax, [rbp + 0xb0]
mov rbx, 0xffffffffffffffff
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], si
jne 0x1400a58f0
lea rdx, [rbp + 0xb0]
lea rcx, [rsp + 0x60]
call fcn.14008a840
nop
movsd xmm0, qword [str.jDYO__]
movsd qword [rsp + 0x50], xmm0
mov eax, dword [0x140173688]
mov dword [rsp + 0x58], eax
cmp word [0x14017368a], 0
je 0x1400a5956
mov eax, 0x5c
mov word [rsp + 0x50], ax
xor word [rsp + 0x52], 0x37
xor word [rsp + 0x54], 0x38
xor word [rsp + 0x56], 0x39
xor word [rsp + 0x58], 0x3a
xor word [rsp + 0x5a], 0x3b
lea rax, [rsp + 0x50]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400a5960
mov r8, rbx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x60]
call fcn.1400898f0
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x60]
call fcn.14014a514
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 7
cmova rdx, qword [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.140088a90
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rbx
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x64], edx
mov qword [rsp + 0x30], rsi
mov word [rsp + 0x38], 1
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov rcx, qword [rbp + rcx - 0x18]
mov qword [rsp + 0x50], rcx
test rcx, rcx
sete byte [rsp + 0x58]
mov byte [rsp + 0x59], 0
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
movaps xmm0, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm6, xmmword [rsp + 0x30]
test rcx, rcx
je 0x1400a5a4f
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x1400a5a3b
mov byte [rsp + 0x59], al
mov rax, qword [rsp + 0x50]
mov byte [rsp + 0x58], 1
movaps xmm0, xmmword [rsp + 0x50]
jmp 0x1400a5a54
mov rax, rsi
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x58], 1
movaps xmm0, xmmword [rsp + 0x50]
jmp 0x1400a5a54
movq rax, xmm0
test rax, rax
movq rax, xmm6
jne 0x1400a5b45
test rax, rax
je 0x1400a5b4e
movdqa xmmword [rsp + 0x30], xmm6
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.1400a9550
nop
lea rcx, [rbp - 0x50]
call fcn.140089bd0
test rax, rax
jne 0x1400a5ab5
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rdx, [rbp - 0x80]
mov rcx, rdi
call fcn.1400e9fc0
nop
lea rcx, [rbp - 0x80]
call fcn.14008a0b0
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], rbx
mov rcx, qword [rbp - 0x60]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb0]
mov dword [rbp + rdx - 0x64], r8d
lea rcx, [rbp - 0x50]
call fcn.140089750
lea rcx, [rbp - 0x48]
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 + 0x50]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x60]
call fcn.14008a0b0
mov rax, rdi
mov rcx, qword [rbp + 0x2c0]
xor rcx, rsp
call fcn.140148bf0
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret
test rax, rax
je 0x1400a5a6b
movdqa xmm0, xmmword [0x140177ff0]
movdqu xmmword [rbp - 0x70], xmm0
mov word [rbp - 0x80], si
jmp 0x1400a5a8b