Function at 0x140008060
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x140038080]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
xor ebx, ebx
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rbx + 7]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xorps xmm0, xmm0
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rbx
movups xmmword [rbp + 0x80], xmm0
test eax, eax
js 0x1400080e3
lea rax, [rbp + 0xc0]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], bx
jne 0x1400080d0
lea rdx, [rbp + 0xc0]
jmp 0x1400080ed
xor r8d, r8d
lea rdx, [0x14003176c]
lea rcx, [rbp + 0x80]
call fcn.1400073c0
nop
cmp qword [rbp + 0x90], 0
je 0x140008393
lea r8, str.CS_OBS_Startup.bat
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xa0]
call fcn.1400071a0
nop
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x70]
call fcn.14000bd60
lea rdx, [rbp + 0xa0]
lea rcx, [rsp + 0x70]
call fcn.140003710
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
test byte [rbp + rcx - 0x80], 6
jne 0x1400082ea
lea rdx, [rbp + 0xc0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdx, str._echo_off
lea rcx, [rsp + 0x70]
call fcn.140004190
mov rcx, rax
call fcn.140004450
lea rdx, [0x140031e08]
lea rcx, [rsp + 0x70]
call fcn.140004190
mov rcx, rax
lea rdx, [rbp + 0xc0]
call fcn.140004190
mov rcx, rax
lea rdx, [0x140031e04]
call fcn.140004190
mov rcx, rax
call fcn.140004450
lea rdx, str.start_____CS_OBS.exe_
lea rcx, [rsp + 0x70]
call fcn.140004190
mov rcx, rax
call fcn.140004450
lea rdx, str.exit
lea rcx, [rsp + 0x70]
call fcn.140004190
mov rcx, rax
call fcn.140004450
lea rcx, [rsp + 0x78]
call fcn.140003cb0
test rax, rax
jne 0x140008231
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x48], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x80]
and eax, 0x17
mov dword [rbp + rcx - 0x80], eax
mov edx, dword [rbp + rcx - 0x7c]
and edx, eax
jne 0x140008400
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140003420
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.140008f88
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 8
jb 0x1400082e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400082de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140008454
call fcn.14000984c
mov bl, 1
jmp 0x140008395
lea rax, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
call fcn.140003420
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.140008f88
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 8
jb 0x140008393
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000838e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000845a
call fcn.14000984c
xor bl, bl
mov rdx, qword [rbp + 0x98]
cmp rdx, 8
jb 0x1400083d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400083d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400083fa
call fcn.14000984c
movzx eax, bl
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.1400097f0
mov rbx, qword [rsp + 0x3f0]
add rsp, 0x3e0
pop rbp
ret
call fcn.140011ccc
nop
test dl, 4
je 0x14000840e
lea rbx, str.ios_base::badbit_set
jmp 0x140008423
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 + 0x38]
call fcn.1400012e0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400023e0
lea rdx, [0x1400364d0]
lea rcx, [rsp + 0x48]
call fcn.14000b5c4
nop
call fcn.140011ccc
int3
call fcn.140011ccc
int3