Function at 0x140018648
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov al, byte [0x140057d71]
lea rdx, [0x140057c30]
neg al
mov rdi, rcx
sbb rcx, rcx
or ebx, 0xffffffff
and rcx, rdx
je 0x1400186a8
mov r8d, ebx
mov qword [rbp - 0x49], rcx
mov dword [rbp - 0x41], 7
mov dword [rbp - 0x3d], ebx
call fcn.140008450
mov r8, qword [rdi]
lea rdx, str._StartProcessWithNoExceptionHandler___s_
lea rcx, [rbp - 0x49]
mov dword [rbp - 0x39], eax
call fcn.140004194
and qword [rbp - 0x51], 0
mov ecx, 0x30
call fcn.140038cd0
lea rdx, [0x14004e584]
lea rcx, [rbp + 0x77]
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 0x59], rax
call fcn.140005938
lea rdx, str.GOOGLE_UPDATE_NO_CRASH_HANDLER
lea rcx, [rbp + 0x6f]
call fcn.140005938
lea r8, [rbp + 0x77]
lea rdx, [rbp + 0x6f]
lea rcx, [rbp - 0x59]
call fcn.140013dfc
mov rdx, qword [rbp + 0x6f]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14001871b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp + 0x77]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x140018739
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
and qword [rbp - 0x39], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rbx, rax
test rax, rax
je 0x14001880d
lea r8, [rbp - 0x49]
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.140013f28
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rbp - 0x49]
cmp rbx, qword [rbp - 0x41]
je 0x140018811
xor edx, edx
mov dword [rbp - 0x19], 0x68
lea rcx, [rbp - 0x11]
lea r8d, [rdx + 0x60]
call fcn.1400218f0
mov rdx, qword [rdi]
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x21], rax
movups xmmword [rbp - 0x31], xmm0
cmp dword [rdx - 8], 1
jle 0x1400187b9
mov edx, dword [rdx - 0x10]
mov rcx, rdi
call fcn.140001bdc
mov rdx, qword [rdi]
lea rax, [rbp - 0x31]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x19]
xor ecx, ecx
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x400
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140018811
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x140018818
mov rbx, qword [rbp - 0x49]
call fcn.14000ca08
mov edi, eax
test rbx, rbx
je 0x140018853
mov rdx, qword [rbp - 0x39]
mov rax, rbx
sub rdx, rbx
sar rdx, 1
add rdx, rdx
cmp rdx, 0x1000
jb 0x14001884b
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001888d
mov rcx, rbx
call fcn.140020f38
mov r8, qword [rbp - 0x59]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x59]
mov r8, qword [r8 + 8]
call fcn.14000c968
mov rcx, qword [rbp - 0x59]
mov edx, 0x30
call fcn.140020f38
lea r11, [rsp + 0x100]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140026e84
int3