Function at 0x1400036b0
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 - 0x1f0]
sub rsp, 0x2f0
mov rax, qword [0x14005c080]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor ebx, ebx
mov rcx, qword [0x1403b3430]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400036f9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
lea rsi, [0x1403b33b0]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rsi + r8], bl
jne 0x140003720
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000ba70
nop
lea rcx, [rsp + 0x30]
call fcn.140015df0
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000377f
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000377a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c51
call fcn.140019650
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xd0]
call fcn.14003dbd0
lea rdx, [rbp + 0xd0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, [rbp + 0xd0]
mov rax, rdi
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1400037b0
cmp byte [rbp + rax + 0xcf], 0x5c
jne 0x1400037da
dec rax
cmp rax, 0x104
jae 0x140003c5d
mov byte [rbp + rax + 0xd0], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
lea rax, [rbp + 0xd0]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x1400037f6
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x30]
call fcn.14000ba70
nop
mov r8d, 1
lea rdx, [0x14004b844]
lea rcx, [rsp + 0x30]
call fcn.1400094b0
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xa0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xb0], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140003865
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp + 0xa0]
call fcn.1400094b0
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], rbx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x1400038f2
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400038ed
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c57
call fcn.140019650
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], 0xf
mov byte [rbp + 0xa0], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140003948
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003943
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c63
call fcn.140019650
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x70]
call fcn.14003dbd0
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140007580
nop
call fcn.140023f40
movsxd rcx, eax
movabs rax, 0x1c926b9d39431d5f
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rax, rdx, 0x23d6df
sub rcx, rax
add ecx, 0x1649d
movsxd rdi, ecx
mov rcx, rdi
call fcn.140019c98
mov rsi, rax
test rdi, rdi
je 0x140003a02
nop dword [rax]
call fcn.140023f40
mov r9d, eax
mov eax, 0x80808081
imul r9d
add edx, r9d
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0xff
sub r9d, ecx
mov byte [rsi + rbx], r9b
inc rbx
cmp rbx, rdi
jb 0x1400039d0
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.140007720
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x140003b28
movabs rax, 0xa1214f7e84963adb
mov qword [rbp + 0xa0], rax
movabs rax, 0xc4f05cd34b280e68
mov qword [rbp + 0xa8], rax
movabs rax, 0xd15da244936db53d
mov qword [rbp + 0xb0], rax
movabs rax, 0x196b14893777b39a
mov qword [rbp + 0xb8], rax
movabs rax, 0xa5ecfb5acf1dff8f
mov qword [rbp + 0xc0], rax
movabs rcx, 0x6e62d1dfd9816c6c
mov qword [rbp + 0xc8], rcx
movabs rax, 0xce533d3ba4cb1b80
mov qword [rsp + 0x30], rax
movabs rax, 0xaa992cbe3e4c2e1a
mov qword [rsp + 0x38], rax
movabs rax, 0xb87dd62dfb1e955a
mov qword [rsp + 0x40], rax
movabs rax, 0x711f34ec531ec0f4
mov qword [rsp + 0x48], rax
movabs rax, 0xa5ec9029a679dfea
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rcx
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmm2, xmmword [rsp + 0x50]
xorps xmm0, xmmword [rbp + 0xa0]
movdqa xmmword [rsp + 0x30], xmm0
xorps xmm1, xmmword [rbp + 0xb0]
movdqa xmmword [rsp + 0x40], xmm1
xorps xmm2, xmmword [rbp + 0xc0]
movdqa xmmword [rsp + 0x50], xmm2
lea rdx, [rsp + 0x30]
lea rcx, [0x1403b1b80]
call fcn.14000a3e0
mov rcx, rax
call fcn.14000a690
lea rcx, [rbp - 0x68]
call fcn.1400090e0
test rax, rax
jne 0x140003b66
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x28], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x60]
and eax, 0x17
mov dword [rbp + rcx - 0x60], eax
and eax, dword [rbp + rcx - 0x5c]
jne 0x140003c69
mov rcx, rsi
call fcn.140019650
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rcx, qword [rsp + 0x68]
call fcn.140023e5c
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.1400072d0
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x74], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x38]
call fcn.140018818
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140003c23
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c4b
call fcn.140019650
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140019630
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140023400
int3
call fcn.140023400
nop
call fcn.140023400
nop
call fcn.140019888
nop
call fcn.140023400
nop
test al, 4
je 0x140003c76
lea rbx, str.ios_base::badbit_set
jmp 0x140003c8a
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 + 0xa0]
call fcn.140001e80
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140002d60
lea rdx, [0x14005ad80]
lea rcx, [rsp + 0x30]
call fcn.14001b5c8
int3