Function at 0x140015630
Capabilities:
Create process on windows
Self delete

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov rsi, rcx
mov rax, qword [0x1403a8f38]
xor rax, rsp
mov qword [rsp + 0xe8], rax
call fcn.140016bd0
mov edi, eax
test eax, eax
jne 0x140015b1a
xorps xmm6, xmm6
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0xd0], xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
mov dword [rsp + reloc.WS2_32.dll_WSASetLastError], 0x70
cmp dword [rsi + 0x88], 1
je 0x14001587e
mov rax, qword [rsi]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsi + 0x18]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsi + 0x28]
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xac], 0x100
lea rcx, [0x1402a867e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp byte [0x1403aa9b8], 0
je 0x140015712
mov rbx, qword [0x1403aa9d0]
test rbx, rbx
jne 0x140015794
jmp 0x14001587e
mov rbx, rax
mov rdi, qword [0x1403aa9b0]
mov rcx, rdi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
cmp byte [0x1403aa9b8], 1
jne 0x140015736
mov rbx, qword [0x1403aa9d0]
jmp 0x140015783
lea rdx, str.InitializeProcThreadAttributeList
mov r14, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rbx
call r14
mov qword [0x1403aa9c0], rax
lea rdx, str.UpdateProcThreadAttribute
mov rcx, rbx
call r14
mov qword [0x1403aa9c8], rax
lea rdx, str.DeleteProcThreadAttributeList
mov rcx, rbx
call r14
mov rbx, rax
mov qword [0x1403aa9d0], rax
mov byte [0x1403aa9b8], 1
mov rcx, rdi
call fcn.14009cff0
test rbx, rbx
je 0x14001587e
mov qword [rsp + 0x50], 0
lea r9, [rsp + 0x50]
xor ecx, ecx
mov edx, 1
xor r8d, r8d
call qword [0x1403aa9c0]
test eax, eax
jne 0x1400157c5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140015b10
mov rcx, qword [rsp + 0x50]
call sym.dart_precompiled_runtime_product.exe_Dart_ScopeAllocate
mov qword [rsi + 0x70], rax
mov r8, qword [rsp + 0x50]
mov rcx, rax
xor edx, edx
call fcn.140269450
mov rcx, qword [rsi + 0x70]
lea r9, [rsp + 0x50]
mov edx, 1
xor r8d, r8d
call qword [0x1403aa9c0]
test eax, eax
je 0x140015b10
mov rbx, qword [rsi]
mov r14, qword [rsi + 0x18]
mov r15, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x68]
mov rax, qword [rsi + 0x58]
sub rcx, rax
cmp rcx, 0x17
ja 0x140015831
lea rdi, [rsi + 0x58]
mov edx, 3
mov rcx, rdi
call fcn.1400171c0
mov rax, qword [rdi]
mov qword [rax], rbx
mov qword [rax + 8], r14
mov qword [rax + 0x10], r15
add rax, 0x18
mov qword [rsi + 0x60], rax
mov r9, qword [rsi + 0x58]
mov rcx, qword [rsi + 0x70]
sub rax, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rax
mov r8d, 0x20002
xor edx, edx
call qword [0x1403aa9c8]
test eax, eax
je 0x140015b10
mov rax, qword [rsi + 0x70]
mov qword [rsp + 0xd8], rax
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 0
mov ecx, dword [rsi + 0x88]
call fcn.140014180
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 + 0x50]
mov qword [rsp + 0x48], r9
lea r9, [rsp + 0x70]
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 0x140015b10
mov ecx, 1
cmp dword [rsi + 0x88], 1
je 0x14001592e
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.140014180
test al, al
je 0x140015949
mov r8, qword [rsi + 0x38]
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x60]
call fcn.1400170e0
mov ecx, dword [rsi + 0x88]
cmp ecx, 2
je 0x140015af3
call fcn.140014190
test al, al
je 0x140015a7e
mov ecx, 0xc0
call fcn.140266220
mov rdi, rax
mov rdx, qword [rsi + 8]
mov rcx, rax
call fcn.14000de60
mov qword [rdi + 0xa0], 0
mov dword [rdi + 0xa8], reloc.WS2_32.dll_recv
mov qword [rdi + 0xb0], 0
mov byte [rdi + 0xb8], 1
lea r15, [0x1402a88d0]
mov qword [rdi], r15
lea r12, [0x1402a7f90]
mov qword [rdi + 0x10], r12
mov dword [rdi + 0x50], 0
mov ecx, 0xc0
call fcn.140266220
mov rbx, rax
mov rdx, qword [rsi + 0x10]
mov rcx, rax
call fcn.14000de60
mov qword [rbx + 0xa0], 0
mov dword [rbx + 0xa8], reloc.WS2_32.dll_recv
mov qword [rbx + 0xb0], 0
mov byte [rbx + 0xb8], 1
mov qword [rbx], r15
mov qword [rbx + 0x10], r12
mov dword [rbx + 0x50], 0
mov ecx, 0xc0
call fcn.140266220
mov r14, rax
mov rdx, qword [rsi + 0x20]
mov rcx, rax
call fcn.14000de60
mov qword [r14 + 0xa0], 0
mov dword [r14 + 0xa8], reloc.WS2_32.dll_recv
mov qword [r14 + 0xb0], 0
mov byte [r14 + 0xb8], 1
mov qword [r14], r15
mov qword [r14 + 0x10], r12
mov dword [r14 + 0x50], 0
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.140014180
test al, al
je 0x140015af3
mov ecx, 0xc0
call fcn.140266220
mov rdi, rax
mov rdx, qword [rsi + 0x30]
mov rcx, rax
call fcn.14000de60
mov qword [rdi + 0xa0], 0
mov dword [rdi + 0xa8], reloc.WS2_32.dll_recv
mov qword [rdi + 0xb0], 0
mov byte [rdi + 0xb8], 1
lea rax, [0x1402a88d0]
mov qword [rdi], rax
lea rax, [0x1402a7f90]
mov qword [rdi + 0x10], rax
mov dword [rdi + 0x50], 0
mov rax, qword [rsi + 0xb0]
mov qword [rax], rdi
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsi + 0xa8]
mov qword [rcx], rax
xor edi, edi
jmp 0x140015b1a
mov rcx, rsi
call fcn.140016fa0
mov edi, eax
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140265fa0
mov eax, edi
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret