Function at 0x14007a010
Capabilities:
Check if file exists
Create process on windows
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x308]
sub rsp, 0x3e0
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14013f130]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov r12, rcx
mov qword [rsp + 0x58], rcx
xor r15d, r15d
mov dword [rsp + 0x50], r15d
mov rdx, rcx
lea rcx, [rbp + 0x140]
call fcn.14000e0c0
nop
lea rbx, [r12 + 0x20]
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov dword [rsp + 0x50], 1
lea rdi, [rbx + 0x10]
mov rdx, qword [rdi]
inc rdx
lea rcx, [rbp - 0x30]
call fcn.140078cb0
lea r8d, [r15 + 1]
lea rdx, [0x1401098a4]
lea rcx, [rbp - 0x30]
call fcn.1400172e0
cmp qword [rbx + 0x18], 8
jb 0x14007a0be
mov rbx, qword [rbx]
mov r8, qword [rdi]
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.1400172e0
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdx, qword [rbp - 0x30]
mov r8, qword [rbp - 0x20]
lea rcx, [rbp + 0x140]
call fcn.1400172e0
mov r13d, r15d
lea rcx, [rbp - 0x30]
call fcn.140006e90
mov qword [rbp], r15
mov qword [rbp + 8], 7
mov word [rbp - 0x10], r15w
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rbx, rax
mov qword [rsp + 0x60], rax
lea r14, [0x1400fdef8]
lea rsi, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
lea rdi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
test rax, rax
je 0x14007a623
mov r12, rax
cmp word [rax], 0
je 0x14007a5e1
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov rdx, r12
lea rcx, [rbp - 0x30]
call fcn.14000e470
nop
lea rbx, [rbp - 0x30]
mov rsi, qword [rbp - 0x30]
mov r14, qword [rbp - 0x18]
cmp r14, 8
cmovae rbx, rsi
mov rdi, qword [rbp - 0x20]
test rdi, rdi
je 0x14007a1fe
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x1d0]
call fcn.1400b93c0
lea rcx, [0x140109880]
mov r8d, 0x100
movzx eax, word [rcx]
cmp ax, r8w
jae 0x14007a260
movzx eax, al
mov byte [rbp + rax + 0x1d0], 1
add rcx, 2
lea rax, [0x140109882]
cmp rcx, rax
jne 0x14007a1a1
lea rcx, [rbx + rdi*2]
mov rdx, rbx
cmp rbx, rcx
jae 0x14007a1fe
movzx eax, word [rdx]
cmp ax, r8w
jae 0x14007a1ef
movzx eax, ax
cmp byte [rbp + rax + 0x1d0], 0
je 0x14007a1ef
mov al, 1
jmp 0x14007a1f1
xor al, al
test al, al
jne 0x14007a258
add rdx, 2
cmp rdx, rcx
jb 0x14007a1d5
mov rdx, 0xffffffffffffffff
cmp rdx, 0xffffffffffffffff
je 0x14007a53e
mov qword [rbp + 0x20], r15
mov qword [rbp + 0x28], 7
mov word [rbp + 0x10], r15w
cmp rdi, rdx
cmovb rdx, rdi
lea r9, [rbp - 0x30]
cmp r14, 8
cmovae r9, rsi
lea rcx, [rbp + 0x10]
cmp rdx, 7
ja 0x14007a299
mov qword [rbp + 0x20], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call fcn.1400b8f60
mov word [rbp + rbx + 0x10], r15w
jmp 0x14007a29e
sub rdx, rbx
sar rdx, 1
jmp 0x14007a205
lea r9, [rbx + rdi*2]
mov rdx, rbx
cmp rbx, r9
jae 0x14007a1fe
mov ecx, 1
lea rax, [0x140109880]
movzx r8d, word [rdx]
nop dword [rax]
cmp word [rax], r8w
je 0x14007a258
add rax, 2
sub rcx, 1
jne 0x14007a280
add rdx, 2
cmp rdx, r9
jmp 0x14007a26a
call fcn.14000e760
or r13d, 2
mov r14d, r13d
lea r10, [rbp + 0x10]
mov rdi, qword [rbp + 0x10]
mov rsi, qword [rbp + 0x28]
cmp rsi, 8
cmovae r10, rdi
mov rbx, qword [rbp + 0x20]
cmp rbx, 0xc
jb 0x14007a32a
lea r11, [rbx - 0xb]
lea r11, [r10 + r11*2]
mov rax, r10
nop
mov rdx, r11
sub rdx, rax
sar rdx, 1
je 0x14007a32a
movzx ecx, word [rax]
cmp cx, 0x43
je 0x14007a2ee
add rax, 2
sub rdx, 1
jmp 0x14007a2d9
test rax, rax
je 0x14007a32a
mov r9d, recv
lea rdx, str.COMPAT_LAYER
mov r8, rax
cmp cx, word [rdx]
jne 0x14007a31c
add r8, 2
add rdx, 2
sub r9, 1
je 0x14007a322
movzx ecx, word [r8]
jmp 0x14007a303
add rax, 2
jmp 0x14007a2d0
sub rax, r10
sar rax, 1
jmp 0x14007a331
mov rax, 0xffffffffffffffff
cmp rax, 0xffffffffffffffff
je 0x14007a4ec
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x120]
call fcn.140078ac0
nop
call fcn.140084bd0
cmp eax, 3
jl 0x14007a4d4
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0x30]
call fcn.1400b93c0
lea rax, [0x1400fdef8]
mov qword [rbp + 0x30], rax
or r13d, 4
mov dword [rsp + 0x50], r13d
lea rdi, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0xb8], rdi
mov dword [rbp + 0xb4], 0x78
xor r8d, r8d
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0xb8]
call fcn.1400075d0
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x30], rbx
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x2c], edx
mov edx, 2
lea rcx, [rbp + 0x38]
call fcn.140009f10
nop
lea rdx, str._screen_
lea rcx, [rbp + 0x30]
call fcn.14000ae60
mov rcx, rax
lea rdx, str.IpcHostAgent::init_
call fcn.14000ae60
lea rdx, [rbp + 0x120]
cmp qword [rbp + 0x138], 0x10
cmovae rdx, qword [rbp + 0x120]
mov r8, qword [rbp + 0x130]
mov rcx, rax
call fcn.14000e8c0
lea rdx, str.__this
mov rcx, rax
call fcn.14000ae60
mov rcx, rax
mov rax, qword [rsp + 0x58]
mov rdx, qword [rax + 0x40]
call fcn.14000e1b0
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x38]
call fcn.140009e60
mov r13d, r14d
or r13d, 0x14
lea rdx, [rsp + 0x68]
mov ecx, 3
call fcn.140084ea0
nop
lea rcx, [rsp + 0x68]
call fcn.140007080
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], rbx
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x38]
call fcn.140008ea0
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], rdi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x2c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xb8], rax
lea rcx, [rbp + 0xb8]
call fcn.140097eb0
nop
lea rcx, [rbp + 0x120]
call fcn.140007080
mov rsi, qword [rbp + 0x28]
mov rbx, qword [rbp + 0x20]
mov rdi, qword [rbp + 0x10]
lea rcx, [rbp + 0x10]
cmp rsi, 8
cmovae rcx, rdi
cmp rbx, 0xe
jne 0x14007a531
mov r8, rbx
lea rdx, str.__COMPAT_LAYER
movzx eax, word [rdx]
cmp word [rcx], ax
jne 0x14007a531
add rcx, 2
add rdx, 2
sub r8, 1
jne 0x14007a508
mov rax, qword [rbp - 0x20]
lea rbx, [rax + rax]
lea rcx, [rbp + 0x10]
call fcn.140006e90
jmp 0x14007a5ab
lea rcx, [rbp + 0x10]
call fcn.140006e90
mov rdi, qword [rbp - 0x20]
lea r8, [rbp - 0x10]
mov r10, qword [rbp - 0x10]
mov r9, qword [rbp + 8]
cmp r9, 8
cmovae r8, r10
mov rax, qword [rbp]
lea rcx, [rax + rax]
add r8, rcx
lea rdx, [rbp - 0x10]
cmp r9, 8
cmovae rdx, r10
add rdx, rcx
lea rcx, [rdi + 1]
lea rcx, [r12 + rcx*2]
sub r8, rdx
sar r8, 1
lea rax, [rbp - 0x10]
cmp r9, 8
cmovae rax, r10
sub rdx, rax
sar rdx, 1
sub rcx, r12
sar rcx, 1
mov qword [rsp + 0x20], rcx
mov r9, r12
lea rcx, [rbp - 0x10]
call fcn.14007dd80
mov rax, qword [rbp - 0x20]
lea rbx, [rax + rax]
lea rcx, [rbp - 0x30]
call fcn.140006e90
add r12, 2
add r12, rbx
cmp word [r12], 0
jne 0x14007a141
mov rbx, qword [rsp + 0x60]
lea rdi, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
lea rsi, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
lea r14, [0x1400fdef8]
mov rcx, qword [rbp]
mov rdx, qword [rbp + 8]
cmp rcx, rdx
jae 0x14007a609
lea rax, [rcx + 1]
mov qword [rbp], rax
lea rax, [rbp - 0x10]
cmp rdx, 8
cmovae rax, qword [rbp - 0x10]
mov dword [rax + rcx*2], r15d
jmp 0x14007a615
xor r9d, r9d
lea rcx, [rbp - 0x10]
call fcn.14007d3b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov r12, qword [rsp + 0x58]
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp + 0x164]
call fcn.1400b93c0
mov dword [rbp + 0x160], WSAGetLastError
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
lea ecx, [rax + 0x20]
mov rax, r15
cmp qword [rbp], r15
je 0x14007a66c
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rax, qword [rbp - 0x10]
mov ecx, 0x420
lea rdx, [rbp + 0x140]
cmp qword [rbp + 0x158], 8
cmovae rdx, qword [rbp + 0x140]
lea r8, [rbp - 0x48]
mov qword [rsp + 0x48], r8
lea r8, [rbp + 0x160]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14007aa1f
mov rdi, qword [r12 + 0x40]
add rdi, 0x150
mov qword [rsp + 0x60], rdi
mov rcx, rdi
call fcn.14009977c
test eax, eax
je 0x14007a6e6
mov ecx, eax
call fcn.140099370
nop
mov rcx, qword [r12 + 0x40]
mov rax, qword [rbp - 0x48]
mov qword [rcx + 0x98], rax
mov rcx, qword [r12 + 0x40]
mov eax, dword [rbp - 0x38]
mov dword [rcx + 0x90], eax
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [r12 + 0x40]
mov ecx, 0x60
call fcn.14009ab2c
mov rsi, rax
mov qword [rsp + 0x58], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_a06eb443cd9e27796ba4098aa754d166___void___.0
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rbx
lea rax, [rsp + 0x68]
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rax, vtable.ProcessHandleMonitor.0
mov qword [rsi], rax
lea rbx, [rsi + 8]
mov qword [rbp - 0x58], rbx
mov qword [rbx + 0x38], r15
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14007a774
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
mov qword [rbx + 0x38], rax
mov qword [rsi + 0x48], r15
mov qword [rsi + 0x50], r15
mov qword [rsi + 0x58], r15
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14007a79b
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov rax, qword [r12 + 0x40]
add rax, 0xa0
lea rcx, [rbp - 0x58]
cmp rax, rcx
je 0x14007a7c7
mov rcx, qword [rax]
mov qword [rax], rsi
test rcx, rcx
je 0x14007a7d5
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
nop
jmp 0x14007a7d5
mov rax, qword [rsi]
mov edx, 1
mov rcx, rsi
call qword [rax]
nop
mov rax, qword [r12 + 0x40]
mov rbx, qword [rax + 0xa0]
mov r14, qword [rax + 0x98]
lea rcx, [rbx + 0x50]
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x20], 0xffffffff
mov r9, rbx
lea r8, [0x1400846c0]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov rsi, rax
mov qword [rbx + 0x48], rax
test rax, rax
je 0x14007a879
xor edx, edx
mov r8d, 0x90
lea rcx, [rbp + 0x30]
call fcn.1400b93c0
mov dword [rbp + 0x40], 0x2000
mov r9d, 0x90
lea r8, [rbp + 0x30]
mov edx, 9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetInformationJobObject]
test eax, eax
jne 0x14007a869
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x48], r15
jmp 0x14007a86d
mov r15, qword [rbx + 0x48]
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
call fcn.140084bd0
cmp eax, 3
jl 0x14007a9fa
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0x30]
call fcn.1400b93c0
lea rax, [0x1400fdef8]
mov qword [rbp + 0x30], rax
or r13d, 0x60
mov dword [rsp + 0x50], r13d
lea rsi, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + 0xb8], rsi
mov dword [rbp + 0xb4], 0x78
xor r8d, r8d
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0xb8]
call fcn.1400075d0
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x30], rbx
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x88]
mov dword [rbp + rcx + 0x2c], r8d
mov edx, 2
lea rcx, [rbp + 0x38]
call fcn.140009f10
nop
lea rdx, str._screen_
lea rcx, [rbp + 0x30]
call fcn.14000ae60
mov rcx, rax
lea rdx, str.IpcHostAgent::init__pid
call fcn.14000ae60
mov rcx, rax
mov edx, dword [rbp - 0x38]
call fcn.14000e310
mov rcx, rax
lea rdx, str.__myid
call fcn.14000ae60
mov rcx, rax
mov edx, dword [r12 + 0x48]
call fcn.14000e310
mov rcx, rax
lea rdx, str.__this
call fcn.14000ae60
mov rcx, rax
mov rdx, qword [r12 + 0x40]
call fcn.14000e1b0
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x38]
call fcn.140009e60
nop
lea rdx, [rsp + 0x68]
mov ecx, 3
call fcn.140084ea0
nop
lea rcx, [rsp + 0x68]
call fcn.140007080
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], rbx
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x38]
call fcn.140008ea0
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], rsi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x2c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xb8], rax
lea rcx, [rbp + 0xb8]
call fcn.140097eb0
nop
mov rax, qword [r12 + 0x40]
mov byte [rax + 0x88], 1
mov rcx, rdi
call fcn.1400997a0
test eax, eax
je 0x14007aa1a
mov ecx, eax
call fcn.140099370
nop
jmp 0x14007ab81
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.140084bd0
cmp eax, 2
jl 0x14007ab75
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp + 0x30]
call fcn.1400b93c0
mov qword [rbp + 0x30], r14
bts r13d, 9
mov dword [rsp + 0x50], r13d
mov qword [rbp + 0xb8], rsi
mov dword [rbp + 0xb4], 0x78
xor r8d, r8d
lea rdx, [rbp + 0x38]
lea rcx, [rbp + 0xb8]
call fcn.1400075d0
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], rdi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x2c], edx
mov edx, 2
lea rcx, [rbp + 0x38]
call fcn.140009f10
nop
lea rdx, str._screen_
lea rcx, [rbp + 0x30]
call fcn.14000ae60
mov rcx, rax
lea rdx, str.IpcHostAgent::init__Failed_to_launch_media_process._Error_code_
call fcn.14000ae60
mov rcx, rax
mov edx, ebx
call fcn.14000e310
mov rcx, rax
lea rdx, str.__this
call fcn.14000ae60
mov rcx, rax
mov rdx, qword [r12 + 0x40]
call fcn.14000e1b0
lea rdx, [rsp + 0x68]
lea rcx, [rbp + 0x38]
call fcn.140009e60
nop
lea rdx, [rsp + 0x68]
mov ecx, 2
call fcn.140084ea0
nop
lea rcx, [rsp + 0x68]
call fcn.140007080
nop
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], rdi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rbp + rcx + 0x2c], edx
lea rcx, [rbp + 0x38]
call fcn.140008ea0
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx + 0x30], rsi
mov rax, qword [rbp + 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x2c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0xb8], rax
lea rcx, [rbp + 0xb8]
call fcn.140097eb0
nop
mov rax, qword [r12 + 0x40]
mov byte [rax + 0x88], 0
lea rcx, [rbp - 0x10]
call fcn.140006e90
nop
lea rcx, [rbp + 0x140]
call fcn.140006e90
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.14009ab00
lea r11, [rsp + 0x3e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret