Function at 0x140149d10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4d0]
sub rsp, 0x5d0
mov rax, qword [0x14043c0c0]
xor rax, rsp
mov qword [rbp + 0x4c0], rax
mov r14, r9
mov rdi, r8
mov rsi, rdx
xor r13d, r13d
lea rdx, [rbp + 0x2b0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14014a553
movabs rax, 0x3e66e9495988e19
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x210], rax
movabs rcx, 0xd957e84c5e35b30a
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x218], rax
movabs rax, 0x3e600fdf7eaea75
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x270], rax
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x278], rax
movdqa xmm0, xmmword [rbp + 0x210]
xorps xmm0, xmmword [rbp + 0x270]
movdqa xmmword [rbp + 0x210], xmm0
mov rdx, qword [rsi + 0x10]
lea rax, [rbp + 0x210]
mov rbx, 0xffffffffffffffff
mov rcx, rbx
inc rcx
cmp byte [rax + rcx], r13b
jne 0x140149df4
movabs r15, 0x7fffffffffffffff
mov rax, r15
sub rax, rdx
cmp rax, rcx
jb 0x14014a5d1
mov r9, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140149e23
mov r9, qword [rsi]
mov qword [rsp + 0x30], rcx
lea rax, [rbp + 0x210]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rcx, [rbp + 0x250]
call fcn.1401280a0
nop
lea rax, [rbp + 0x250]
cmp qword [rbp + 0x268], 0xf
cmova rax, qword [rbp + 0x250]
mov qword [rbp + 0x230], rax
mov rax, qword [rbp + 0x260]
mov qword [rbp + 0x238], rax
movaps xmm0, xmmword [rbp + 0x230]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x290]
call fcn.14014ff50
mov r12, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x1d0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1e0], xmm1
lea rax, [rbp + 0x2b0]
mov r8, rbx
inc r8
cmp word [rax + r8*2], 0
jne 0x140149eb2
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp + 0x1d0]
call fcn.140112ec0
nop
mov r9, r12
lea r8, [rbp + 0x1d0]
lea rcx, [rbp + 0x1f0]
call fcn.14014c9f0
nop
lea rdx, [rbp + 0x1f0]
cmp qword [rbp + 0x208], 7
cmova rdx, qword [rbp + 0x1f0]
mov r8d, 0x20
lea rcx, [rbp + 0xb0]
call fcn.14013d6e0
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0xb0], rax
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xac], edx
mov rdx, qword [rbp + 0x208]
cmp rdx, 7
jbe 0x140149f89
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140149f84
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14014a5d7
call fcn.14015511c
movdqa xmm0, xmmword [0x14040d5d0]
movdqu xmmword [rbp + 0x200], xmm0
mov word [rbp + 0x1f0], r13w
mov rdx, qword [rbp + 0x1e8]
cmp rdx, 7
jbe 0x140149fe7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140149fe2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14014a5dd
call fcn.14015511c
movdqa xmm0, xmmword [0x14040d5d0]
movdqu xmmword [rbp + 0x1e0], xmm0
mov word [rbp + 0x1d0], r13w
mov rdx, qword [rbp + 0x2a8]
cmp rdx, 7
jbe 0x14014a045
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x290]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14014a040
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14014a5e3
call fcn.14015511c
movdqa xmm0, xmmword [0x14040d5d0]
movdqu xmmword [rbp + 0x2a0], xmm0
mov word [rbp + 0x290], r13w
mov rdx, qword [rbp + 0x268]
cmp rdx, 0xf
jbe 0x14014a09e
inc rdx
mov rcx, qword [rbp + 0x250]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14014a099
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14014a5e9
call fcn.14015511c
movdqa xmm0, xmmword [0x14040d5e0]
movdqu xmmword [rbp + 0x260], xmm0
mov byte [rbp + 0x250], 0
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x14014a0c3
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.14014c140
lea rcx, [rbp + 0xb8]
call fcn.140126170
mov edi, 6
lea r12d, [rdi - 4]
test rax, rax
jne 0x14014a126
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
mov eax, edi
cmp qword [rbp + rcx + 0xf8], 0
cmovne eax, r12d
or eax, dword [rbp + rcx + 0xc0]
and eax, 0x17
mov dword [rbp + rcx + 0xc0], eax
mov edx, dword [rbp + rcx + 0xc4]
and edx, eax
jne 0x14014a5ef
movabs rax, 0x3e600fd908b9e10
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x220], rax
movabs rcx, 0xd957e84c5e35b30a
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov qword [rbp + 0x228], rax
movabs rax, 0x3e600fdf7eaea75
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], rcx
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
movdqa xmm0, xmmword [rbp + 0x220]
xorps xmm0, xmmword [rsp + 0x60]
movdqa xmmword [rbp + 0x220], xmm0
mov rcx, qword [rsi + 0x10]
lea rdx, [rbp + 0x220]
mov rax, rbx
inc rax
cmp byte [rdx + rax], 0
jne 0x14014a1a7
sub r15, rcx
cmp r15, rax
jb 0x14014a643
cmp qword [rsi + 0x18], 0xf
jbe 0x14014a1c6
mov rsi, qword [rsi]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x220]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rsi
lea rcx, [rbp + 0x230]
call fcn.1401280a0
nop
lea rax, [rbp + 0x230]
cmp qword [rbp + 0x248], 0xf
cmova rax, qword [rbp + 0x230]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 0x240]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x270]
call fcn.14014ff50
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x1f0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x200], xmm1
lea rax, [rbp + 0x2b0]
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14014a250
mov r8, rbx
lea rdx, [rbp + 0x2b0]
lea rcx, [rbp + 0x1f0]
call fcn.140112ec0
nop
mov r9, rsi
lea r8, [rbp + 0x1f0]
lea rcx, [rbp + 0x1d0]
call fcn.14014c9f0
nop
lea rdx, [rbp + 0x1d0]
cmp qword [rbp + 0x1e8], 7
cmova rdx, qword [rbp + 0x1d0]
mov r8d, 0x20
lea rcx, [rbp - 0x60]
call fcn.14013d6e0
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rsi
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x64], edx
mov rdx, qword [rbp + 0x1e8]
cmp rdx, 7
jbe 0x14014a31a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1d0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14014a315
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14014a649
call fcn.14015511c
movdqa xmm0, xmmword [0x14040d5d0]
movdqu xmmword [rbp + 0x1e0], xmm0
mov word [rbp + 0x1d0], r13w
mov rdx, qword [rbp + 0x208]
cmp rdx, 7
jbe 0x14014a379
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x1f0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14014a373
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14014a64f
call fcn.14015511c
nop
mov rdx, qword [rbp + 0x288]
cmp rdx, 7
jbe 0x14014a3bf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x270]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14014a3ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14014a655
call fcn.14015511c
movdqa xmm0, xmmword [0x14040d5d0]
movdqu xmmword [rbp + 0x280], xmm0
mov word [rbp + 0x270], r13w
mov rdx, qword [rbp + 0x248]
cmp rdx, 0xf
jbe 0x14014a418
inc rdx
mov rcx, qword [rbp + 0x230]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14014a413
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14014a65b
call fcn.14015511c
movdqa xmm0, xmmword [0x14040d5e0]
movdqu xmmword [rbp + 0x240], xmm0
mov byte [rbp + 0x230], 0
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0xf
jbe 0x14014a43d
mov r14, qword [r14]
mov rdx, r14
lea rcx, [rbp - 0x60]
call fcn.14014c140
lea rcx, [rbp - 0x58]
call fcn.140126170
test rax, rax
jne 0x14014a480
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
cmp qword [rbp + rcx - 0x18], 0
cmovne edi, r12d
or edi, dword [rbp + rcx - 0x50]
and edi, 0x17
mov dword [rbp + rcx - 0x50], edi
mov eax, dword [rbp + rcx - 0x4c]
and eax, edi
jne 0x14014a57d
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x60], rsi
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x58]
call fcn.140125d40
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rdi, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x60], rdi
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x64], edx
lea rbx, vtable.std::ios_base.0
mov qword [rbp + 0x48], rbx
lea rcx, [rbp + 0x48]
call fcn.140150ff0
nop
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xb0], rsi
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0xac], edx
lea rcx, [rbp + 0xb8]
call fcn.140125d40
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0xb0], rdi
mov rax, qword [rbp + 0xb0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0xac], edx
mov qword [rbp + 0x158], rbx
lea rcx, [rbp + 0x158]
call fcn.140150ff0
nop
mov rcx, qword [rbp + 0x4c0]
xor rcx, rsp
call fcn.140154c90
mov rbx, qword [rsp + 0x610]
add rsp, 0x5d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test al, 4
je 0x14014a58a
lea rbx, str.ios_base::badbit_set
jmp 0x14014a59e
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0x1c0]
call fcn.140114d60
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140115740
lea rdx, [0x1404391c0]
lea rcx, [rsp + 0x70]
call fcn.14018d774
nop
call fcn.140110640
nop
call fcn.140192f04
nop
call fcn.140192f04
nop
call fcn.140192f04
nop
call fcn.140192f04
int3
test dl, 4
je 0x14014a5fd
lea rbx, str.ios_base::badbit_set
jmp 0x14014a612
test r12b, dl
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140114d60
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140115740
lea rdx, [0x1404391c0]
lea rcx, [rsp + 0x70]
call fcn.14018d774
int3
call fcn.140110640
nop
call fcn.140192f04
nop
call fcn.140192f04
nop
call fcn.140192f04
nop
call fcn.140192f04
int3