Function at 0x1400036d0
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 - 0x220]
sub rsp, 0x320
mov rax, qword [0x14005c080]
xor rax, rsp
mov qword [rbp + 0x210], rax
xor ebx, ebx
mov rcx, qword [0x1403b3430]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140003719
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 0x140003740
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000ba40
nop
lea rcx, [rsp + 0x30]
call fcn.140016030
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000379f
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000379a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c62
call fcn.1400198a0
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x100]
call fcn.14003de20
lea rdx, [rbp + 0x100]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea rcx, [rbp + 0x100]
mov rax, rdi
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1400037d0
cmp byte [rbp + rax + 0xff], 0x5c
jne 0x1400037fa
dec rax
cmp rax, 0x104
jae 0x140003c6e
mov byte [rbp + rax + 0x100], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
lea rax, [rbp + 0x100]
mov r8, rdi
inc r8
cmp byte [rax + r8], 0
jne 0x140003816
lea rdx, [rbp + 0x100]
lea rcx, [rsp + 0x30]
call fcn.14000ba40
nop
mov r8d, 1
lea rdx, [0x14004b844]
lea rcx, [rsp + 0x30]
call fcn.140009480
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], rbx
mov qword [rbp + 0xe8], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xd0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xe0], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
inc rdi
cmp byte [rsi + rdi], 0
jne 0x140003885
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp + 0xd0]
call fcn.140009480
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x48], rbx
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp + 0xe8]
cmp rdx, 0xf
jbe 0x14000390e
inc rdx
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003909
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c68
call fcn.1400198a0
mov qword [rbp + 0xe0], rbx
mov qword [rbp + 0xe8], 0xf
mov byte [rbp + 0xd0], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140003964
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000395f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c74
call fcn.1400198a0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], 0xf
mov byte [rsp + 0x30], 0
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x40]
call fcn.14003de20
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x40]
call fcn.140007550
nop
call fcn.140024190
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.140019ee8
mov rsi, rax
test rdi, rdi
je 0x140003a18
call fcn.140024190
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 [rbx + rsi], r9b
inc rbx
cmp rbx, rdi
jb 0x1400039e6
mov r8, rdi
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.1400076f0
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x140003b3c
movabs rax, 0x26ac35e01a04f223
mov qword [rbp + 0xd0], rax
movabs rax, 0xc2f7f2456d3d6b60
mov qword [rbp + 0xd8], rax
movabs rax, 0xf744a37ebf4632ad
mov qword [rbp + 0xe0], rax
movabs rax, 0x146c329bb3530baa
mov qword [rbp + 0xe8], rax
movabs rax, 0x29d54edc86ce9fd7
mov qword [rbp + 0xf0], rax
movabs rcx, 0xc5f4f2c10a99d1e4
mov qword [rbp + 0xf8], rcx
movabs rax, 0x49de47a53a59d378
mov qword [rsp + 0x30], rax
movabs rax, 0xac9e822818594b12
mov qword [rsp + 0x38], rax
movabs rax, 0x9e64d717d73512ca
mov qword [rsp + 0x40], rax
movabs rax, 0x7c1812fed73a78c4
mov qword [rsp + 0x48], rax
movabs rax, 0x29d525afefaabfb2
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 + 0xd0]
movdqa xmmword [rsp + 0x70], xmm0
xorps xmm1, xmmword [rbp + 0xe0]
movdqa xmmword [rbp - 0x80], xmm1
xorps xmm2, xmmword [rbp + 0xf0]
movdqa xmmword [rbp - 0x70], xmm2
lea rdx, [rsp + 0x70]
lea rcx, [0x1403b1b80]
call fcn.14000a3b0
mov rcx, rax
call fcn.14000a660
lea rcx, [rbp - 0x38]
call fcn.1400090b0
test rax, rax
jne 0x140003b7a
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
and eax, dword [rbp + rcx - 0x2c]
jne 0x140003c7a
mov rcx, rsi
call fcn.1400198a0
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0xf
cmova rcx, qword [rbp - 0x60]
call fcn.1400240ac
nop
mov rax, qword [rbp - 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_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 - 0xa8]
mov dword [rbp + rcx - 0x44], edx
lea rcx, [rbp - 0x38]
call fcn.1400072a0
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.140018a68
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140003c34
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c2f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003c5c
call fcn.1400198a0
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140019880
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.140023650
int3
call fcn.140023650
nop
call fcn.140023650
nop
call fcn.140019ad8
nop
call fcn.140023650
nop
test al, 4
je 0x140003c87
lea rbx, str.ios_base::badbit_set
jmp 0x140003c9b
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 + 0xd0]
call fcn.140001e80
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140002d60
lea rdx, [0x14005ad90]
lea rcx, [rsp + 0x30]
call fcn.14001b818
int3