Function at 0x140030a80
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1400d80c0]
xor rax, rsp
mov qword [rbp + 0xa8], rax
xor r15d, r15d
mov edi, r15d
mov dword [rsp + 0x34], r15d
lea rcx, [rbp + 0x68]
call fcn.140041c30
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xe
jb 0x140030b10
lea r14, [rcx + 0xe]
mov qword [rbx + 0x10], r14
mov rsi, rbx
cmp rdx, 7
jbe 0x140030af3
mov rsi, qword [rbx]
lea rcx, [rsi + rcx*2]
mov r8d, 0x1c
lea rdx, str.debug_log.txt
call fcn.14009cc30
mov word [rsi + r14*2], r15w
jmp 0x140030b36
mov qword [rsp + 0x20], SafeArrayDestroy
lea r9, str.debug_log.txt
movzx r8d, byte [rsp + 0x30]
mov edx, SafeArrayDestroy
mov rcx, rbx
call fcn.14002bcc0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x88], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x98], xmm1
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x88], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x98], xmm1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
or edi, 2
mov rdx, qword [rbp + 0x80]
cmp rdx, 7
jbe 0x140030bb7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030bb1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030efd
call fcn.1400752d0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r15
mov qword [rbp + 0x80], 7
mov word [rbp + 0x68], r15w
or edi, 8
mov dword [rsp + 0x34], edi
mov ecx, dword [0x1400dc4f8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140030c11
mov rax, qword [0x1400dc4c8]
mov rdx, qword [rax]
test rdx, rdx
je 0x140030c11
mov rax, qword [0x1400dc4a8]
mov r9, qword [rax]
cmp rdx, qword [0x1400dc4f0]
cmovb rdx, qword [0x1400dc4f0]
jmp 0x140030c3d
test cl, 4
jne 0x140030c75
mov rax, qword [0x1400dc4c0]
mov rdx, qword [rax]
test rdx, rdx
je 0x140030c75
mov rax, qword [0x1400dc4a0]
mov r9, qword [rax]
mov rax, qword [0x1400dc4d8]
movsxd rcx, dword [rax]
lea rdx, [rdx + rcx*2]
sub rdx, r9
mov rax, r9
sar rdx, 1
test rax, rax
je 0x140030c75
lea rcx, [rbp + 0x68]
cmp rdx, 7
ja 0x140030c70
mov qword [rbp + 0x78], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.14009cc30
mov word [rbp + rbx + 0x68], r15w
jmp 0x140030c75
call fcn.140020900
and edi, 0xfffffff7
or edi, 4
or edi, 1
mov dword [rsp + 0x34], edi
lea rdx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 7
cmova rdx, qword [rbp + 0x88]
lea rcx, [rsp + 0x40]
call fcn.140039b80
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rbx
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
cmp qword [rbp - 0x38], 0
jne 0x140030e33
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x40], rbx
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x48]
call fcn.14002ad90
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x3c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.140074090
nop
xor bl, bl
test dil, 1
je 0x140030d86
mov rdx, qword [rbp + 0x80]
cmp rdx, 7
jbe 0x140030d86
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030d81
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030f03
call fcn.1400752d0
test bl, bl
je 0x140030dc1
lea r8, [rbp + 0x88]
cmp qword [rbp + 0xa0], 7
cmova r8, qword [rbp + 0x88]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 7
jbe 0x140030e07
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030e02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030ef7
call fcn.1400752d0
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.1400752b0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
lea rcx, [rsp + 0x40]
call fcn.14002b4c0
mov r8, qword [rbp + 0x78]
test r8, r8
je 0x140030e65
add r8, r8
lea rdx, [rbp + 0x68]
cmp qword [rbp + 0x80], 7
cmova rdx, qword [rbp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.140039890
nop
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x40], rbx
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
lea rcx, [rsp + 0x48]
call fcn.14002ad90
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x3c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.140074090
nop
lea rcx, [rbp + 0x88]
cmp qword [rbp + 0xa0], 7
cmova rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140030d3b
mov bl, 1
jmp 0x140030d3d
call fcn.14007c3bc
nop
call fcn.14007c3bc
int3
call fcn.14007c3bc
int3