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 [0x14005b080]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
xor ebx, ebx
mov rcx, qword [0x1403b2380]
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, [0x1403b2300]
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.14000ba80
nop
lea rcx, [rsp + 0x30]
call fcn.140015e10
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.140019670
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xd0]
call fcn.14003d150
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.14000ba80
nop
mov r8d, 1
lea rdx, [0x14004a954]
lea rcx, [rsp + 0x30]
call fcn.1400094c0
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.1400094c0
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.140019670
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.140019670
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.14003d150
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x70]
call fcn.140007590
nop
call fcn.140023204
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.140019cbc
mov rsi, rax
test rdi, rdi
je 0x140003a02
nop dword [rax]
call fcn.140023204
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.140007730
mov rcx, qword [rax]
movsxd rdx, dword [rcx + 4]
test byte [rdx + rax + 0x10], 6
je 0x140003b28
movabs rax, 0xdfb6bc782627be0f
mov qword [rbp + 0xa0], rax
movabs rax, 0x78769b7d5f230260
mov qword [rbp + 0xa8], rax
movabs rax, 0x6a6182d29fb81761
mov qword [rbp + 0xb0], rax
movabs rax, 0x67e90eff4144bf5a
mov qword [rbp + 0xb8], rax
movabs rax, 0x7369f6a4b0e3b853
mov qword [rbp + 0xc0], rax
movabs rcx, 0xa0eb91c97bdb92a4
mov qword [rbp + 0xc8], rcx
movabs rax, 0xb0c4ce3d067a9f54
mov qword [rsp + 0x30], rax
movabs rax, 0x161feb102a472212
mov qword [rsp + 0x38], rax
movabs rax, 0x341f6bbf7cb3706
mov qword [rsp + 0x40], rax
movabs rax, 0xf9d2e9a252dcc34
mov qword [rsp + 0x48], rax
movabs rax, 0x73699dd7d9879836
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, [0x1403b0b90]
call fcn.14000a3f0
mov rcx, rax
call fcn.14000a6a0
lea rcx, [rbp - 0x68]
call fcn.140009130
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.140019670
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0xf
cmova rcx, qword [rsp + 0x68]
call fcn.140023120
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.1400072c0
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.140018834
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.140019670
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140019650
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.1400226a4
int3
call fcn.1400226a4
nop
call fcn.1400226a4
nop
call fcn.1400198a8
nop
call fcn.1400226a4
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, [0x140059d28]
lea rcx, [rsp + 0x30]
call fcn.14001b70c
int3