Function at 0x140003d70
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x14005a0a0]
xor rax, rsp
mov qword [rbp + 0x220], rax
xor edi, edi
mov dword [rsp + 0x30], edi
mov rbx, 0xffffffffffffffff
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x110]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
lea rax, [rbp + 0x110]
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140003de6
lea rdx, [rbp + 0x110]
lea rcx, [rsp + 0x58]
call fcn.1400072d0
nop
mov r8d, 1
lea rdx, [0x1400542c8]
lea rcx, [rsp + 0x58]
call fcn.1400064a0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x18], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x140003e74
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003e6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004258
call fcn.14000a52c
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
lea rcx, [rbp - 0x48]
call fcn.140003a80
nop
mov r15, qword [rbp - 0x38]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
mov rsi, qword [rbp - 0x18]
sub rax, rsi
cmp rax, r15
jb 0x140004252
lea r13, [rbp - 0x28]
mov r14, qword [rbp - 0x28]
mov rax, qword [rbp - 0x10]
mov qword [rbp - 0x78], rax
cmp rax, 0x10
cmovae r13, r14
lea rax, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rax, qword [rbp - 0x48]
mov qword [rbp - 0x80], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rdi
lea r12, [rsi + r15]
mov ebx, 0xf
lea rdi, [rsp + 0x38]
cmp r12, rbx
jbe 0x140003f7c
mov rbx, r12
or rbx, 0xf
cmp rbx, rcx
jbe 0x140003f12
mov rbx, rcx
jmp 0x140003f1f
cmp rbx, 0x16
mov eax, 0x16
cmovb rbx, rax
mov rcx, rbx
add rcx, 1
mov rax, 0xffffffffffffffff
cmovb rcx, rax
cmp rcx, 0x1000
jb 0x140003f66
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140004264
mov rcx, rax
call fcn.14000a4f0
test rax, rax
je 0x14000425e
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140003f77
test rcx, rcx
je 0x140003f75
call fcn.14000a4f0
mov rdi, rax
jmp 0x140003f77
xor edi, edi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], rbx
mov r8, rsi
mov rdx, r13
mov rcx, rdi
call fcn.14000c520
lea rcx, [rsi + rdi]
mov r8, r15
mov rdx, qword [rbp - 0x80]
call fcn.14000c520
mov byte [rdi + r12], 0
mov r8d, 4
lea rdx, str..txt
lea rcx, [rsp + 0x38]
call fcn.1400064a0
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
xor edi, edi
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], rdi
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x58], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], 0xf
mov byte [rax], dil
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x14000402c
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004027
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000426a
call fcn.14000a52c
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp]
call fcn.14000cbf0
lea rdx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rdx, qword [rbp - 0x68]
lea rcx, [rbp]
call fcn.140006190
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rsi
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp]
call fcn.140006a10
lea rcx, [rbp + 8]
call fcn.140006090
test rax, rax
jne 0x1400040d4
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rbp + rcx + 0x48], 0
mov edx, 2
cmovne eax, edx
or eax, dword [rbp + rcx + 0x10]
and eax, 0x17
mov dword [rbp + rcx + 0x10], eax
and eax, dword [rbp + rcx + 0x14]
jne 0x140004270
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx], rsi
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 4], edx
lea rcx, [rbp + 8]
call fcn.140005830
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx], rax
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 4], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xa8], rax
lea rcx, [rbp + 0xa8]
call fcn.140009504
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x140004175
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004170
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400042c1
call fcn.14000a52c
mov qword [rbp - 0x58], rdi
mov qword [rbp - 0x50], 0xf
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x1400041c0
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400041bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400042c7
call fcn.14000a52c
mov qword [rbp - 0x38], rdi
mov qword [rbp - 0x30], 0xf
mov byte [rbp - 0x48], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140004206
inc rdx
mov rax, r14
cmp rdx, 0x1000
jb 0x1400041fe
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000424c
mov rcx, r14
call fcn.14000a52c
mov ebx, dword [rsp + 0x30]
inc ebx
mov dword [rsp + 0x30], ebx
cmp ebx, 0x12c
jl 0x140003dae
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14000a4d0
lea r11, [rsp + 0x330]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140012b84
nop
call fcn.1400013b0
nop
call fcn.140012b84
nop
call fcn.140012b84
int3
call fcn.140001310
nop
call fcn.140012b84
nop
test al, 4
je 0x14000427d
lea rbx, str.ios_base::badbit_set
jmp 0x140004291
test dl, al
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp - 0x78]
call fcn.1400014a0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.140002090
lea rdx, [0x140058e20]
lea rcx, [rsp + 0x58]
call fcn.14000c44c
nop
call fcn.140012b84
nop
call fcn.140012b84
int3