Function at 0x140042bec
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rdi, rdx
xor r12d, r12d
mov esi, r12d
mov qword [rbp - 0x29], rcx
lea r15d, [r12 + 2]
lea r13d, [r12 + 6]
mov ecx, 0xfffd
mov rbx, qword [rbp - 0x29]
test rbx, rbx
je 0x1400432df
movzx eax, word [rbx]
sub ax, 0x2d
test cx, ax
jne 0x1400432da
add rbx, r15
mov qword [rbp - 0x29], rbx
lea r8, [rdi + 8]
cmp qword [r8], r12
jne 0x140042c68
lea r9, [rbp - 0x29]
lea rdx, str.name
mov rcx, rbx
call fcn.140043a68
test al, al
jne 0x140042c1f
lea r8, [rdi + 0x10]
cmp qword [r8], r12
jne 0x140042c89
lea r9, [rbp - 0x29]
lea rdx, str.hostname
mov rcx, qword [rbp - 0x29]
call fcn.140043a68
test al, al
jne 0x140042c1f
lea r14, [rdi + 0x38]
cmp qword [r14], r12
jne 0x140042d3d
mov qword [rbp + 7], r12
lea r9, [rbp - 0x29]
lea r8, [rbp + 7]
lea rdx, str.LaunchCompleteEventName
mov rcx, qword [rbp - 0x29]
call fcn.140043a68
test al, al
je 0x140042d33
mov rbx, qword [rbp + 7]
mov r8, rbx
xor edx, edx
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov r15, rax
test rax, rax
jne 0x140042d1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
mov qword [rbp - 1], r12
lea r8, [rbp - 1]
mov edx, 0x243
lea rcx, [0x1403e5a08]
call fcn.14021288c
test eax, eax
je 0x1400431fe
mov esi, r13d
mov rcx, qword [rbp - 1]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [r14], r15
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov r15d, 2
jmp 0x1400430e7
mov rcx, qword [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea r8, [rdi + 0x20]
lea r9, [rbp - 0x29]
lea rdx, str.__dbgautolaunch
mov rcx, qword [rbp - 0x29]
call fcn.140043ac0
test al, al
je 0x140042e29
mov rbx, qword [rbp - 0x29]
test rbx, rbx
mov ecx, 0xfffd
je 0x140042c24
mov r8, r15
lea rdx, [0x14037e478]
mov rcx, rbx
call fcn.140212fd0
test eax, eax
mov ecx, 0xfffd
jne 0x140042c24
cmp qword [r14], r12
jne 0x140042c24
lea r8, [rbp - 0x29]
lea rdx, [rbp + 0x17]
mov rcx, rbx
call fcn.140043bd8
test al, al
je 0x1400432da
lea r8, [rbp - 0x29]
lea rdx, [rdi + 0x40]
mov rcx, qword [rbp - 0x29]
call fcn.140043c70
test al, al
je 0x1400432da
mov r8d, dword [rdi + 0x40]
xor edx, edx
lea ecx, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov qword [rbp + 0xf], rax
test rax, rax
je 0x1400432c8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
mov r9, r14
mov rdx, qword [rbp + 0x17]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400432c8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0xf], r12
jmp 0x140042c1f
cmp qword [rdi], r12
jne 0x140042e6c
lea r9, [rbp - 0x29]
mov r8, rdi
lea rdx, [0x14037e480]
mov rcx, qword [rbp - 0x29]
call fcn.140043a68
test al, al
jne 0x140042c1f
lea r9, [rbp - 0x29]
mov r8, rdi
lea rdx, str.allow
mov rcx, qword [rbp - 0x29]
call fcn.140043a68
test al, al
jne 0x140042c1f
lea r8, [rdi + 0x18]
lea r9, [rbp - 0x29]
lea rdx, str.silent
mov rcx, qword [rbp - 0x29]
call fcn.140043ac0
test al, al
jne 0x140042c1f
lea r9, [rbp - 0x29]
lea r8, [rdi + 0x1c]
lea rdx, str.timeout
mov rcx, qword [rbp - 0x29]
call fcn.140043cfc
test al, al
je 0x140042eb7
cmp dword [rdi + 0x1c], r12d
jle 0x1400432da
jmp 0x140042c1f
lea r9, [rdi + 0x29]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r8, str.nowarnwow
lea rdx, str.nowowwarn
mov rcx, qword [rbp - 0x29]
call fcn.140043978
test al, al
jne 0x140042c1f
lea r9, [rdi + 0x2a]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r8, str.nowarnclr
lea rdx, str.noclrwarn
mov rcx, qword [rbp - 0x29]
call fcn.140043978
test al, al
jne 0x140042c1f
lea r9, [rdi + 0x2b]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r8, str.nowarnsecurity
lea rdx, str.nosecuritywarn
mov rcx, qword [rbp - 0x29]
call fcn.140043978
test al, al
jne 0x140042c1f
lea r9, [rdi + 0x2c]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r8, str.nowarnfirewall
lea rdx, str.nofirewallwarn
mov rcx, qword [rbp - 0x29]
call fcn.140043978
test al, al
jne 0x140042c1f
lea r8, [rdi + 0x2e]
lea r9, [rbp - 0x29]
lea rdx, str.nostatus
mov rcx, qword [rbp - 0x29]
call fcn.140043ac0
test al, al
jne 0x140042c1f
lea r8, [rdi + 0x44]
lea r9, [rbp - 0x29]
lea rdx, str.nodiscovery
mov rcx, qword [rbp - 0x29]
call fcn.140043ac0
test al, al
jne 0x140042c1f
lea r8, [rdi + 0x2d]
lea r9, [rbp - 0x29]
lea rdx, str.nowarnportinuse
mov rcx, qword [rbp - 0x29]
call fcn.140043ac0
test al, al
jne 0x140042c1f
lea r8, [rdi + 0x2f]
lea r9, [rbp - 0x29]
lea rdx, str.__pseudoremote
mov rcx, qword [rbp - 0x29]
call fcn.140043ac0
test al, al
jne 0x140042c1f
lea r8, [rdi + 0x31]
lea r9, [rbp - 0x29]
lea rdx, str.__workerProcess
mov rcx, qword [rbp - 0x29]
call fcn.140043ac0
test al, al
jne 0x140042c1f
cmp dword [rdi + 0x24], r15d
je 0x14004302d
lea r9, [rbp - 0x29]
lea r8, [rbp + 0x67]
lea rdx, str.noauth
mov rcx, qword [rbp - 0x29]
call fcn.140043ac0
test al, al
jne 0x1400431f2
cmp dword [rdi + 0x24], 3
je 0x14004305f
lea r9, [rbp - 0x29]
lea r8, [rbp + 0x77]
lea rdx, str.ntlm
mov rcx, qword [rbp - 0x29]
call fcn.140043ac0
test al, al
je 0x14004305f
mov dword [rdi + 0x24], r15d
mov dword [0x1403e51bc], r15d
jmp 0x140042c1f
mov qword [rbp - 0x19], r12
lea r9, [rbp - 0x29]
lea r8, [rbp - 0x19]
lea rdx, str.RemoteBinaryLocatorDll
mov rcx, qword [rbp - 0x29]
call fcn.140043a68
test al, al
je 0x14004309c
mov rdx, qword [rbp - 0x19]
lea rcx, str.VS_Debugging_RemoteBinaryLocator
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
cmove esi, r13d
mov rcx, qword [rbp - 0x19]
jmp 0x1400430e1
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbp - 0x11], r12
lea r9, [rbp - 0x29]
lea r8, [rbp - 0x11]
lea rdx, str.RemoteBinaryLocatorOptions
mov rcx, qword [rbp - 0x29]
call fcn.140043a68
test al, al
je 0x1400430f4
mov rdx, qword [rbp - 0x11]
lea rcx, str.VS_Debugging_RemoteBinaryLocator_Options
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
cmove esi, r13d
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jne 0x14004330f
jmp 0x140042c1f
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea r8, [rdi + 0x28]
lea r9, [rbp - 0x29]
lea rdx, str.anyuser
mov rcx, qword [rbp - 0x29]
call fcn.140043ac0
test al, al
jne 0x140042c1f
lea r8, [rdi + 0x45]
lea r9, [rbp - 0x29]
lea rdx, str.installed
mov rcx, qword [rbp - 0x29]
call fcn.140043ac0
test al, al
jne 0x140042c1f
lea r9, [rbp - 0x29]
lea r8, [rbp - 0x21]
lea rdx, str.port
mov rcx, qword [rbp - 0x29]
call fcn.140043cfc
test al, al
je 0x140043174
mov ecx, dword [rbp - 0x21]
lea eax, [rcx - 1]
cmp eax, 0xfffd
ja 0x1400432da
mov word [rdi + 0x32], cx
jmp 0x140042c1f
lea r9, [rbp - 0x29]
lea r8, [rbp + 0x7f]
lea rdx, str.FallbackLoadRemoteManagedPdbs
mov rcx, qword [rbp - 0x29]
call fcn.140043ac0
test al, al
je 0x14004319c
mov byte [0x1403e51b8], 1
jmp 0x140042c1f
lea r9, [rbp - 0x29]
lea r8, [rbp - 0x21]
lea rdx, str.wow64port
mov rcx, qword [rbp - 0x29]
call fcn.140043cfc
test al, al
je 0x1400431d2
mov ecx, dword [rbp - 0x21]
lea eax, [rcx - 1]
cmp eax, 0xfffd
ja 0x1400432da
mov word [rdi + 0x34], cx
jmp 0x140042c1f
lea r8, [rdi + 0x30]
lea r9, [rbp - 0x29]
lea rdx, str.__stdredirection
mov rcx, qword [rbp - 0x29]
call fcn.140043ac0
test al, al
je 0x1400432da
mov dword [rdi + 0x24], 3
jmp 0x140042c1f
call fcn.140034f08
test rax, rax
je 0x140043361
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 9], rax
mov r8, rbx
mov rdx, qword [rbp - 1]
lea rcx, [rbp - 9]
call fcn.140035ee8
mov edx, 0x20
lea rcx, [rbp - 9]
call fcn.1400439d8
mov edx, esi
lea rcx, [rbp + 0x1f]
call fcn.14004a23c
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 9]
call fcn.1400348c4
nop
mov rdx, qword [rbp + 0x1f]
add rdx, 0xffffffffffffffe8
or r14d, 0xffffffff
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x14004327c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rbp - 9]
mov r8, rbx
mov edx, 1
xor ecx, ecx
call fcn.14004a154
mov esi, 7
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x1400432b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rbp - 1]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x14004330f
test rbx, rbx
je 0x1400432da
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0xf], r12
mov esi, r13d
jmp 0x14004330f
cmp dword [rdi + 0x24], 3
je 0x1400432eb
cmp byte [rdi + 0x28], r12b
jmp 0x1400432f4
cmp qword [rdi], r12
jne 0x1400432f6
cmp qword [rdi + 8], r12
je 0x1400432f9
mov esi, r13d
cmp byte [rdi + 0x2f], r12b
jne 0x140043305
cmp byte [rdi + 0x31], r12b
je 0x14004330b
cmp byte [rdi + 0x20], r12b
je 0x1400432da
test esi, esi
je 0x140043344
mov rcx, qword [rdi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 8]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea r8d, [rdx + 0x48]
mov rcx, rdi
call fcn.1400612f0
mov eax, esi
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140034ce8
int3