Function at 0x140045384
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1401411c8]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov r13, r9
mov rbx, r8
mov r15, rdx
mov r14, rcx
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x80]
call sub.msvcrt.dll_memset
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
cmp qword [rbx + 0x18], 8
jb 0x1400453ef
mov rbx, qword [rbx]
mov r9, rbx
lea r8, [0x1400ff410]
mov edx, 0x208
lea rcx, [rbp - 0x10]
call fcn.140001e70
mov ebx, eax
test eax, eax
js 0x140045647
mov dword [rbp - 0x80], 0x68
lea rax, [0x1400f0e30]
mov qword [rsp + 0x70], rax
xor esi, esi
mov qword [rsp + 0x78], rsi
lea r12, section..data
cmp byte [r13], sil
je 0x1400454ca
call fcn.140045b18
test rax, rax
je 0x14004545f
mov rsi, rax
mov dword [rbp - 0x44], 0x100
or qword [rbp - 0x30], 0xffffffffffffffff
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
jmp 0x1400454d2
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
mov eax, 0x80004005
cmovns ebx, eax
cmp dword [0x140142444], 2
jb 0x14004549a
mov r8d, ebx
lea rdx, str.Failed_to_create_redirection_file:_0x_x
mov ecx, 2
call fcn.14003929c
mov rcx, qword [section..data]
cmp rcx, r12
je 0x1400454ca
test byte [rcx + 0x1c], 8
je 0x1400454ca
cmp byte [rcx + 0x19], 2
jb 0x1400454ca
mov edx, 0x19
mov r9d, ebx
lea r8, [0x1400ff638]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
test ebx, ebx
js 0x14004562f
cmp qword [r15 + 0x10], 0
jne 0x1400454de
xor r15d, r15d
jmp 0x1400454e8
cmp qword [r15 + 0x18], 8
jb 0x1400454e8
mov r15, qword [r15]
xor eax, eax
cmp byte [r13], al
setne al
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x40], rcx
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x10]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateProcessW]
test eax, eax
je 0x1400455c3
mov rbx, qword [rsp + 0x50]
mov rcx, qword [r14 + 0x30]
cmp rbx, rcx
je 0x140045559
test rcx, rcx
je 0x140045555
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x1400456f3
mov qword [r14 + 0x30], rbx
mov rcx, qword [rsp + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14004556a
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
mov dword [r14 + 0x38], eax
mov dword [r14 + 0x60], 2
cmp byte [r13], 0
je 0x1400455a6
mov rbx, rsi
xor esi, esi
mov rcx, qword [r14 + 0x58]
cmp rbx, rcx
je 0x1400455a6
test rcx, rcx
je 0x1400455a2
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x14004570e
mov qword [r14 + 0x58], rbx
test rsi, rsi
je 0x1400455bc
mov rcx, rsi
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x1400456bf
xor eax, eax
jmp 0x14004569d
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
mov eax, 0x80004005
cmovns ebx, eax
cmp dword [0x140142444], 2
jb 0x1400455fe
mov r8d, ebx
lea rdx, str.Failed_to_launch_recorder:_0x_x
mov ecx, 2
call fcn.14003929c
mov rcx, qword [section..data]
cmp rcx, r12
je 0x14004562f
test byte [rcx + 0x1c], 8
je 0x14004562f
cmp byte [rcx + 0x19], 2
jb 0x14004562f
mov edx, 0x1a
mov r9d, ebx
lea r8, [0x1400ff638]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
nop
test rsi, rsi
je 0x14004569b
mov rcx, rsi
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x1400456d9
jmp 0x14004569b
cmp dword [0x140142444], 2
jb 0x140045664
mov r8d, ebx
lea rdx, str.Failed_to_create_command_line:_0x_x
mov ecx, 2
call fcn.14003929c
lea r12, section..data
mov rcx, qword [section..data]
cmp rcx, r12
je 0x14004569b
test byte [rcx + 0x1c], 8
je 0x14004569b
cmp byte [rcx + 0x19], 2
jb 0x14004569b
mov edx, 0x1b
mov r9d, ebx
lea r8, [0x1400ff638]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
mov eax, ebx
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1400c20a0
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14002953c
int3
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14002953c
nop
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
nop
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14002953c
int3
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14002953c
int3