Function at 0x140047ec0
Capabilities:
Create process on windows
Create process suspended
Inject apc
Query environment variable
Resume thread
Self delete
Terminate process
Use process replacement

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x310]
sub rsp, 0x410
mov rax, qword [0x1400d33c0]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov r13d, edx
mov rbx, rcx
xor edi, edi
lea rdx, [rbp + 0xf0]
lea rcx, str._SystemRoot_System32_rundll32.exe
mov r8d, 0x104
mov esi, edi
mov dword [rsp + 0x68], edi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
mov r12d, 0x102
cmp eax, r12d
ja 0x140048119
lea r8d, [rdi + 0x60]
lea rcx, [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x70], 0x68
call fcn.140091cf0
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
lea r15d, [rdi + 4]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
lea rdx, [rbp + 0xf0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r14d, eax
test eax, eax
je 0x140048111
mov rcx, qword [rbx + 0x10]
xor edx, edx
mov r9d, 0x1000
lea r8d, [rcx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
je 0x1400480a0
cmp qword [rbx + 0x18], 8
mov r9, qword [rbx + 0x10]
mov qword [rsp + 0x68], rdi
jb 0x140047fe0
mov rbx, qword [rbx]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
lea r9, [r9*2 + 2]
mov r8, rbx
mov rdx, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1400b2e38]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400b2e40]
mov rcx, rbx
mov r12, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400b2e50]
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test r12, r12
je 0x14004809b
test rsi, rsi
je 0x14004809b
test rax, rax
je 0x14004809b
mov rdx, qword [rsp + 0x58]
mov r8, r13
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rdx, qword [rsp + 0x58]
mov r8, r15
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rdx, qword [rsp + 0x58]
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1400480fb
mov r14d, edi
jmp 0x1400480fb
call fcn.1400096a0
mov ebx, 2
cmp eax, ebx
jg 0x1400480df
mov esi, ebx
call sub.KERNEL32.dll_GetLastError
lea rdx, str.c:_b_build_slavewin64_build_srcchromeinstaller_setup_setup_util.cc
lea rcx, [rbp - 0x20]
mov r9d, ebx
mov r8d, r12d
mov dword [rsp + 0x20], eax
call fcn.140009f90
lea rdx, [0x1400b2e60]
lea rcx, [rax + 0x10]
call fcn.140008810
test bl, sil
je 0x1400480ed
lea rcx, [rbp - 0x20]
call fcn.14000a010
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
setne al
jmp 0x14004811b
xor al, al
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140091a70
mov rbx, qword [rsp + 0x460]
add rsp, 0x410
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret