Function at 0x140051f80
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x20000]
mov eax, 0x20100
call fcn.140269fb0
sub rsp, rax
mov rax, qword [0x14035dc30]
xor rax, rsp
mov qword [rbp + 0x1fff0], rax
mov qword [rsp + 0x58], rdx
mov rbx, r9
mov qword [rsp + 0x60], r8
mov rsi, r8
mov rdi, rdx
test rdx, rdx
je 0x1400521c4
xor r15d, r15d
cmp r15w, word [rdx]
je 0x1400521c4
mov rcx, rdx
call fcn.14023e96c
test eax, eax
je 0x14005203f
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [r15 + 5]
mov dword [rsp + 0x50], eax
call fcn.140096b00
test eax, eax
je 0x1400521fc
lea rax, [rsp + 0x50]
mov r9d, 0xf3
mov qword [rsp + 0x30], rax
lea r8, str.McAfee::Script::CSystemPlugin::LaunchProcess
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rdx, str.E:BT86881f80_1629_4c1f_90f1_c57ce4e5deb1ScriptHostJavaScriptScriptablePluginsSystemPlugin_srcSystemPlugin.cpp
lea rax, str.Module__s_is_invalid__0x_08x_
lea ecx, [r15 + 5]
mov qword [rsp + 0x20], rax
call fcn.140053ac0
jmp 0x1400521fc
xor edx, edx
lea rcx, [rbp - 0x10]
mov r8d, 0x20000
call fcn.14026c200
mov r9, rsi
lea rdx, str._s__s
mov r8, rdi
lea rcx, [rbp - 0x10]
call fcn.140053b40
xorps xmm0, xmm0
mov dword [rbp - 0x80], 0x68
xor eax, eax
lea rdx, [rbp - 0x10]
mov dword [rbp - 0x1c], eax
xor r9d, r9d
mov qword [rsp + 0x78], rax
xor r8d, r8d
lea rax, [rsp + 0x68]
mov rcx, rdi
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r15d
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rsp + 0x68], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14005213c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 5
mov dword [rsp + 0x50], eax
call fcn.140096b00
test eax, eax
je 0x1400521fc
lea rax, [rsp + 0x50]
mov r9d, 0x106
mov qword [rsp + 0x38], rax
lea r8, str.McAfee::Script::CSystemPlugin::LaunchProcess
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rdx, str.E:BT86881f80_1629_4c1f_90f1_c57ce4e5deb1ScriptHostJavaScriptScriptablePluginsSystemPlugin_srcSystemPlugin.cpp
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, str.Failed_to_launch_process__s_with_parameters__s__0x_08x_
mov qword [rsp + 0x20], rax
call fcn.140053ba0
jmp 0x1400521fc
mov ecx, dword [rbx + 8]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov qword [rsp + 0x20130], r14
mov r14d, dword [rsp + 0x78]
sub ecx, 1
je 0x140052174
cmp ecx, 3
jne 0x140052187
lea rcx, [rbx + 0x18]
call fcn.140044010
lea rcx, [rbx + 0x28]
call fcn.140044010
jmp 0x140052187
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140052187
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx + 0x10], r15
lea rax, [rsi - 1]
mov dword [rbx + 0x10], r14d
mov r14, qword [rsp + 0x20130]
mov dword [rbx + 8], 3
cmp rax, 0xfffffffffffffffd
ja 0x1400521ad
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rdi - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400521c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1400521fe
mov ecx, 5
call fcn.140096b00
test eax, eax
je 0x1400521fc
lea rax, str.Invalid__empty__path
mov r9d, 0xe5
lea r8, str.McAfee::Script::CSystemPlugin::LaunchProcess
mov qword [rsp + 0x20], rax
lea rdx, str.E:BT86881f80_1629_4c1f_90f1_c57ce4e5deb1ScriptHostJavaScriptScriptablePluginsSystemPlugin_srcSystemPlugin.cpp
mov ecx, 5
call fcn.1400262e0
xor al, al
mov rcx, qword [rbp + 0x1fff0]
xor rcx, rsp
call fcn.140269300
add rsp, 0x20100
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret