Function at 0x1400306e0
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
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x1400df080]
xor rax, rsp
mov qword [rbp + 0xa0], rax
xor r14d, r14d
mov dword [rsp + 0x34], r14d
call fcn.140043c60
test al, al
je 0x140030a49
lea rcx, [rbp + 0x80]
call fcn.140043990
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xe
jb 0x14003077e
lea rsi, [rcx + 0xe]
mov qword [rbx + 0x10], rsi
mov rdi, rbx
cmp rdx, 8
jb 0x140030761
mov rdi, qword [rbx]
lea rcx, [rdi + rcx*2]
mov r8d, 0x1c
lea rdx, str.debug_log.txt
call fcn.1400785c0
mov word [rdi + rsi*2], r14w
jmp 0x1400307a4
mov qword [rsp + 0x20], SafeArrayDestroy
lea r9, str.debug_log.txt
movzx r8d, byte [rsp + 0x30]
mov edx, SafeArrayDestroy
mov rcx, rbx
call fcn.14002bb40
mov rbx, rax
mov qword [rbp + 0x60], r14
mov qword [rbp + 0x70], r14
mov qword [rbp + 0x78], r14
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x60], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x70], xmm1
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
mov rdx, qword [rbp + 0x98]
cmp rdx, 8
jb 0x140030816
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030810
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030b3f
call fcn.1400761b0
nop
mov qword [rbp + 0x80], r14
mov qword [rbp + 0x90], r14
mov qword [rbp + 0x98], 7
mov word [rbp + 0x80], r14w
mov dword [rsp + 0x34], 0xa
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov ecx, dword [0x1400e3868]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140030885
mov rax, qword [0x1400e3838]
mov r8, qword [rax]
test r8, r8
je 0x140030885
mov rax, qword [0x1400e3818]
mov rdx, qword [rax]
cmp r8, qword [0x1400e3860]
cmovb r8, qword [0x1400e3860]
sub r8, rdx
sar r8, 1
jmp 0x1400308c5
test cl, 4
jne 0x1400308bb
mov rax, qword [0x1400e3830]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400308bb
mov rax, qword [0x1400e3810]
mov rdx, qword [rax]
mov rax, qword [0x1400e3848]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
jmp 0x1400308c5
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1400308d7
lea rcx, [rbp + 0x80]
call fcn.140005660
nop
mov dword [rsp + 0x34], 7
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rdx, qword [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14003b220
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rbx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
cmp qword [rbp - 0x28], 0
jne 0x140030a75
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], rbx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.14002ac50
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x4c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140074c0c
nop
xor bl, bl
mov rdx, qword [rbp + 0x98]
cmp rdx, 8
jb 0x1400309d7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400309d2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030b45
call fcn.1400761b0
test bl, bl
je 0x140030a09
lea r8, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae r8, qword [rbp + 0x60]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov rdx, qword [rbp + 0x78]
cmp rdx, 8
jb 0x140030a49
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140030a44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140030b39
call fcn.1400761b0
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.140076190
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rcx, [rsp + 0x50]
call fcn.14002b3a0
mov r8, qword [rbp + 0x90]
test r8, r8
je 0x140030ab0
add r8, r8
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae rdx, qword [rbp + 0x80]
lea rcx, [rsp + 0x50]
call fcn.14003ae70
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x50], rbx
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
call fcn.14002ac50
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x4c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.140074c0c
nop
lea rcx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rcx, qword [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003098f
mov bl, 1
jmp 0x140030991
call fcn.14007cacc
nop
call fcn.14007cacc
int3
call fcn.14007cacc
int3