Function at 0x140072410
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov edx, 0x104
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x140072712
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 1
mov qword [rsp + 0x48], select
mov word [rsp + 0x30], 0x5c
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
lea rax, [rbp + 0xd0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x140072490
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x70]
call fcn.14000d580
nop
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x70]
lea rcx, [rbp - 0x68]
call fcn.140089f80
nop
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400724ce
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.14000c100
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], select
mov byte [rax], 0
mov rdx, qword [rbp - 0x50]
cmp rdx, 0x10
jb 0x14007254a
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072545
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072731
call fcn.14009ba30
movdqa xmm0, xmmword [0x1400fd660]
movdqu xmmword [rbp - 0x58], xmm0
mov byte [rbp - 0x68], 0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140072598
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072592
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072737
call fcn.14009ba30
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400725d5
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400725d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007273d
call fcn.14009ba30
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
mov r8d, 0x20
lea rcx, [rbp - 0x40]
call fcn.14000bcb0
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rbx
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x44], edx
mov rcx, qword [rbp - 0x40]
movsxd rax, dword [rcx + 4]
test byte [rbp + rax - 0x30], 6
jne 0x14007267d
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.14000be20
lea rcx, [rbp - 0x38]
call fcn.14000c840
test rax, rax
jne 0x140072679
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx + 8], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x30]
and eax, 0x17
mov dword [rbp + rcx - 0x30], eax
mov edx, dword [rbp + rcx - 0x2c]
and edx, eax
jne 0x140072743
mov rcx, qword [rbp - 0x40]
movsxd rax, dword [rcx + 4]
mov qword [rbp + rax - 0x40], rbx
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x38]
call fcn.14000ba00
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x40], rax
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x44], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x68], rax
lea rcx, [rbp + 0x68]
call fcn.140099c48
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140072712
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14007270d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007272b
call fcn.14009ba30
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400a4160
nop
call fcn.1400a4160
nop
call fcn.1400a4160
nop
call fcn.1400a4160
nop
test dl, 4
je 0x140072751
lea rbx, str.ios_base::badbit_set
jmp 0x140072766
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.140001580
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140001df0
lea rdx, [0x1401109b8]
lea rcx, [rsp + 0x70]
call fcn.14009dc78
int3