Function at 0x140012d60
Capabilities:
Create process on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x118
movaps xmmword [rsp + 0x100], xmm6
mov rsi, rcx
mov rax, qword [0x1404a7eb8]
xor rax, rsp
mov qword [rsp + 0xf8], rax
call fcn.140014430
test eax, eax
jne 0x140013273
xorps xmm6, xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0x60], xmm6
mov dword [rsp + 0x50], reloc.WS2_32.dll_WSASetLastError
mov ecx, 1
cmp dword [rsi + 0x88], 1
je 0x140012fa2
mov rax, qword [rsi]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsi + 0x28]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x8c], 0x100
mov qword [rsp + 0xc8], 0
lea r9, [rsp + 0xc8]
xor ecx, ecx
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x140012e4b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400132a0
mov rcx, qword [rsp + 0xc8]
call sym.dartaotruntime_product.exe_Dart_ScopeAllocate
mov qword [rsi + 0x70], rax
mov r8, qword [rsp + 0xc8]
mov rcx, rax
xor edx, edx
call fcn.1402a4b90
mov rcx, qword [rsi + 0x70]
lea r9, [rsp + 0xc8]
mov edx, 1
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x1400132a0
mov rax, qword [rsi]
mov qword [rsp + 0xe0], rax
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0xe8], rax
mov rax, qword [rsi + 0x28]
mov qword [rsp + 0xf0], rax
mov rcx, qword [rsi + 0x58]
mov rax, qword [rsi + 0x68]
sub rax, rcx
cmp rax, 0x17
ja 0x140012ef5
lea rdi, [rsi + 0x58]
mov edx, 3
mov rcx, rdi
call fcn.140014950
mov rdi, qword [rdi]
mov rax, qword [rsp + 0xf0]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0xe0]
movups xmmword [rdi], xmm0
add rdi, 0x18
jmp 0x140012f5e
mov rdi, qword [rsi + 0x60]
sub rdi, rcx
mov r14, rdi
sar r14, 3
cmp r14, 2
ja 0x140012f43
lea rdx, [rsp + 0xe0]
mov r8, rdi
call fcn.1402a44e0
lea rdx, [rsp + rdi]
add rdx, 0xe0
mov rdi, qword [rsi + 0x60]
mov ebx, 3
sub ebx, r14d
shl ebx, 3
mov rcx, rdi
mov r8, rbx
call fcn.1402a44e0
add rdi, rbx
jmp 0x140012f5e
lea rdi, [rcx + 0x18]
mov rax, qword [rsp + 0xf0]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0xe0]
movups xmmword [rcx], xmm0
mov qword [rsi + 0x60], rdi
mov r9, qword [rsi + 0x58]
mov rcx, qword [rsi + 0x70]
sub rdi, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rdi
mov r8d, 0x20002
xor edx, edx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x1400132a0
mov rax, qword [rsi + 0x70]
mov qword [rsp + 0xb8], rax
mov ecx, dword [rsi + 0x88]
movaps xmmword [rsp + 0xe0], xmm6
mov qword [rsp + 0xf0], 0
call fcn.140011810
xor ecx, ecx
cmp dword [rsi + 0x88], 1
setne cl
shl ecx, 0x1b
or ecx, 0x80400
test al, al
mov eax, 0x80408
cmovne eax, ecx
mov rcx, qword [rsi + 0x50]
mov r8, qword [rsi + 0x40]
mov rdx, qword [rsi + 0x48]
lea r9, [rsp + 0xe0]
mov qword [rsp + 0x48], r9
lea r9, [rsp + 0x50]
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400132a0
mov ecx, 1
cmp dword [rsi + 0x88], 1
je 0x140013055
mov rcx, qword [rsi]
mov rdi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rdi
mov rcx, qword [rsi + 0x18]
call rdi
mov rcx, qword [rsi + 0x28]
call rdi
mov ecx, dword [rsi + 0x88]
call fcn.140011810
test al, al
je 0x1400130ff
mov r15, qword [rsi + 0x38]
mov rbx, qword [rsp + 0xe0]
mov r14d, dword [rsp + 0xf0]
mov rdi, qword [0x1404a9508]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov qword [rsp + 0xd8], 0xffffffffffffffff
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x20], 0xffffffff
lea r8, [0x140014b50]
lea rcx, [rsp + 0xd8]
mov rdx, rbx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x1400132c2
mov ecx, 0x28
call fcn.14029f9b8
mov rcx, qword [rsp + 0xd8]
mov dword [rax], r14d
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], r15
mov rcx, qword [0x1404a9500]
mov qword [rax + 0x20], rcx
mov qword [0x1404a9500], rax
mov rcx, rdi
call fcn.140006ee0
mov ecx, dword [rsi + 0x88]
cmp ecx, 2
je 0x140013252
call fcn.140011820
test al, al
je 0x1400131f2
mov ecx, 0x90
call fcn.14029f9b8
mov rdi, rax
mov rdx, qword [rsi + 8]
mov rcx, rax
xor r8d, r8d
xor r9d, r9d
call fcn.14000aac0
mov qword [rdi + 0x78], 0
mov qword [rdi + 0x88], 0
lea r15, [0x1402da9b0]
mov qword [rdi], r15
lea r12, [0x1402daa00]
mov qword [rdi + 0x10], r12
mov ecx, 0x90
call fcn.14029f9b8
mov rbx, rax
mov rdx, qword [rsi + 0x10]
mov rcx, rax
xor r8d, r8d
xor r9d, r9d
call fcn.14000aac0
mov qword [rbx + 0x78], 0
mov qword [rbx + 0x88], 0
mov qword [rbx], r15
mov qword [rbx + 0x10], r12
mov ecx, 0x90
call fcn.14029f9b8
mov r14, rax
mov rdx, qword [rsi + 0x20]
mov rcx, rax
xor r8d, r8d
xor r9d, r9d
call fcn.14000aac0
mov qword [r14 + 0x78], 0
mov qword [r14 + 0x88], 0
mov qword [r14], r15
mov qword [r14 + 0x10], r12
mov rax, qword [rsi + 0x90]
mov qword [rax], rbx
mov rax, qword [rsi + 0x98]
mov qword [rax], rdi
mov rax, qword [rsi + 0xa0]
mov qword [rax], r14
mov ecx, dword [rsi + 0x88]
call fcn.140011810
test al, al
je 0x140013252
mov ecx, 0x90
call fcn.14029f9b8
mov rdi, rax
mov rdx, qword [rsi + 0x30]
mov rcx, rax
xor r8d, r8d
xor r9d, r9d
call fcn.14000aac0
mov qword [rdi + 0x78], 0
mov qword [rdi + 0x88], 0
lea rax, [0x1402da9b0]
mov qword [rdi], rax
lea rax, [0x1402daa00]
mov qword [rdi + 0x10], rax
mov rax, qword [rsi + 0xb0]
mov qword [rax], rdi
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0xf0]
mov rcx, qword [rsi + 0xa8]
mov qword [rcx], rax
xor eax, eax
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
cmp rcx, qword [0x1404a7eb8]
jne 0x1400132bc
movaps xmm6, xmmword [rsp + 0x100]
add rsp, 0x118
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rsi
call fcn.140014800
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
cmp rcx, qword [0x1404a7eb8]
je 0x140013287
call fcn.14029fd30
int3
lea rax, str..._.._runtime_bin_process_win.cc
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xd0], WSASetLastError
lea rdx, str.Failed_to_register_exit_code_wait_operation.
lea rcx, [rsp + 0xc8]
call fcn.1402d94a0
int3