Function at 0x140018808
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 [0x140052db1]
lea rdx, [0x140052c70]
neg al
mov rdi, rcx
sbb rcx, rcx
or ebx, 0xffffffff
and rcx, rdx
je 0x140018868
mov r8d, ebx
mov qword [rbp - 0x49], rcx
mov dword [rbp - 0x41], 7
mov dword [rbp - 0x3d], ebx
call fcn.1400085a0
mov r8, qword [rdi]
lea rdx, str._StartProcessWithNoExceptionHandler___s_
lea rcx, [rbp - 0x49]
mov dword [rbp - 0x39], eax
call fcn.14000427c
and qword [rbp - 0x51], 0
mov ecx, 0x30
call fcn.140037c10
lea rdx, [0x140048344]
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.140005590
lea rdx, str.GOOGLE_UPDATE_NO_CRASH_HANDLER
lea rcx, [rbp + 0x6f]
call fcn.140005590
lea r8, [rbp + 0x77]
lea rdx, [rbp + 0x6f]
lea rcx, [rbp - 0x59]
call fcn.140014170
mov rdx, qword [rbp + 0x6f]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x1400188db
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 0x1400188f9
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 0x1400189cd
lea r8, [rbp - 0x49]
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.140014298
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rbp - 0x49]
cmp rbx, qword [rbp - 0x41]
je 0x1400189d1
xor edx, edx
mov dword [rbp - 0x19], 0x68
lea rcx, [rbp - 0x11]
lea r8d, [rdx + 0x60]
call fcn.140038590
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 0x140018976
mov edx, dword [rdx - 0x10]
mov rcx, rdi
call fcn.140001c40
mov rdx, qword [rdi]
lea rax, [rbp - 0x31]
mov qword [rsp + 0x48], rax
xor r9d, r9d
lea rax, [rbp - 0x19]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
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 0x1400189d1
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 0x1400189d8
mov rbx, qword [rbp - 0x49]
call fcn.14000cde4
mov edi, eax
test rbx, rbx
je 0x140018a13
mov rdx, qword [rbp - 0x39]
mov rax, rbx
sub rdx, rbx
sar rdx, 1
add rdx, rdx
cmp rdx, 0x1000
jb 0x140018a0b
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018a4d
mov rcx, rbx
call fcn.140020374
mov r8, qword [rbp - 0x59]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x59]
mov r8, qword [r8 + 8]
call fcn.14000cd44
mov rcx, qword [rbp - 0x59]
mov edx, 0x30
call fcn.140020374
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.140025ce8
int3