Function at 0x1400a810b
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401d3064
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 0x10], edx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor esi, esi
mov r15, rcx
test rcx, rcx
jne 0x1401d1ff1
call fcn.1400a7c15
mov dword [rax], 0x16
or rax, 0xffffffffffffffff
jmp 0x1401d2119
mov edx, 0x3d
mov rdi, rcx
call fcn.1400a7c56
mov r13, rax
test rax, rax
je 0x1401d20f3
cmp rax, r15
je 0x1401d20f3
mov rbp, rax
lea r12, [0x140201df8]
sub rbp, r15
mov r14d, 0x7fff
cmp rbp, r14
jl 0x1401d205b
xor r9d, r9d
lea rax, str.equal_sign___option____MAX_ENV
mov qword [rsp + 0x28], rax
lea rdx, [0x140232cc0]
mov r8d, 0xa7
mov qword [rsp + 0x20], r12
lea ecx, [r9 + 2]
call fcn.1400a8363
cmp eax, 1
jne 0x1401d205b
int3
mov rdx, r14
lea rcx, [r13 + 1]
call fcn.1400a9d62
cmp rax, r14
jb 0x1401d209c
xor r9d, r9d
lea rax, str.traits::tcsnlen_equal_sign__1___MAX_ENV_____MAX_ENV
mov qword [rsp + 0x28], rax
lea rdx, [0x140232cc0]
mov r8d, 0xa8
mov qword [rsp + 0x20], r12
lea ecx, [r9 + 2]
call fcn.1400a8363
cmp eax, 1
jne 0x1401d209c
int3
cmp byte [r13 + 1], sil
mov r14, qword [0x14025b188]
sete r12b
cmp r14, qword [0x14025b1b0]
jne 0x1401d20c6
mov rcx, r14
call fcn.1401d2aa4
mov r14, rax
mov qword [0x14025b188], rax
lea rax, str.minkernelcrtsucrt_srcdesktopcrtenv_setenv.cpp
test r14, r14
jne 0x1401d2208
cmp dword [rsp + 0x68], esi
je 0x1401d2136
cmp qword [0x14025b190], rsi
je 0x1401d2136
call fcn.1400a89f3
test rax, rax
jne 0x1401d21bc
call fcn.1400a7c15
or rsi, 0xffffffffffffffff
mov dword [rax], 0x16
mov ebp, esi
mov esi, ebp
mov ebp, esi
mov esi, ebp
mov edx, 2
mov rcx, rdi
call fcn.1400a641e
mov eax, esi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
test r12b, r12b
jne 0x1401d2102
mov ebx, 2
mov dword [rsp + 0x20], 0xcf
mov r9, rax
mov r8d, ebx
lea edx, [rbx + 6]
lea ecx, [rbx - 1]
call fcn.1400a9088
mov edx, ebx
mov qword [0x14025b188], rax
xor ecx, ecx
call fcn.1400a641e
mov r14, qword [0x14025b188]
test r14, r14
jne 0x1401d217b
or rbp, 0xffffffffffffffff
jmp 0x1401d2104
cmp qword [0x14025b190], rsi
jne 0x1401d21c3
mov edx, 8
mov dword [rsp + 0x20], 0xd9
lea r9, str.minkernelcrtsucrt_srcdesktopcrtenv_setenv.cpp
mov r8d, ebx
lea ecx, [rdx - 7]
call fcn.1400a9088
mov edx, ebx
mov qword [0x14025b190], rax
xor ecx, ecx
call fcn.1400a641e
cmp qword [0x14025b190], rsi
je 0x1401d2175
mov r14, qword [0x14025b188]
test r14, r14
jne 0x1401d2208
lea rax, str.__CRT_logic_error_in_setenv___0_
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140232cc0]
lea rax, [0x140201df8]
mov r8d, 0xec
lea ecx, [r14 + 2]
mov qword [rsp + 0x20], rax
call fcn.1400a8363
cmp eax, 1
jne 0x1401d2175
int3
cmp qword [r14], rsi
mov rbx, r14
je 0x1401d2243
mov rdx, qword [rbx]
mov r8, rbp
mov rcx, r15
call fcn.1400a9f29
test eax, eax
jne 0x1401d2231
mov rax, qword [rbx]
cmp byte [rax + rbp], 0x3d
je 0x1401d223a
cmp byte [rax + rbp], sil
je 0x1401d223a
add rbx, 8
cmp qword [rbx], rsi
jmp 0x1401d220e
sub rbx, r14
sar rbx, 3
jmp 0x1401d224d
sub rbx, r14
sar rbx, 3
neg rbx
test rbx, rbx
js 0x1401d22cf
cmp qword [r14], rsi
je 0x1401d22cf
mov rcx, qword [r14 + rbx*8]
mov edx, 2
call fcn.1400a641e
test r12b, r12b
jne 0x1401d227f
mov qword [r14 + rbx*8], r15
jmp 0x1401d2346
mov rax, qword [r14 + rbx*8 + 8]
mov qword [r14 + rbx*8], rax
inc rbx
cmp qword [r14 + rbx*8], rsi
jne 0x1401d2273
mov r9d, 2
mov dword [rsp + 0x28], 0x107
lea rax, str.minkernelcrtsucrt_srcdesktopcrtenv_setenv.cpp
mov rdx, rbx
mov rcx, r14
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 6]
call fcn.1400a5f87
mov edx, 2
xor ecx, ecx
mov rbx, rax
call fcn.1400a641e
test rbx, rbx
je 0x1401d2349
mov qword [0x14025b188], rbx
jmp 0x1401d2349
test r12b, r12b
jne 0x1401d2106
neg rbx
lea rdx, [rbx + 2]
cmp rdx, rbx
jae 0x1401d22ed
or rbp, 0xffffffffffffffff
jmp 0x1401d2108
movabs rax, 0x1fffffffffffffff
cmp rdx, rax
jae 0x1401d22e4
mov r9d, 2
mov dword [rsp + 0x28], 0x12a
lea rax, str.minkernelcrtsucrt_srcdesktopcrtenv_setenv.cpp
mov rcx, r14
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 6]
call fcn.1400a5f87
mov edx, 2
xor ecx, ecx
mov r14, rax
call fcn.1400a641e
test r14, r14
je 0x1401d22e4
mov qword [r14 + rbx*8], r15
mov qword [r14 + rbx*8 + 8], rsi
mov qword [0x14025b188], r14
mov rdi, rsi
cmp dword [rsp + 0x68], esi
je 0x1401d210a
or rbp, 0xffffffffffffffff
mov r14, rbp
inc r14
cmp byte [r15 + r14], sil
jne 0x1401d235a
mov edx, 1
mov dword [rsp + 0x20], 0x13f
lea r9, str.minkernelcrtsucrt_srcdesktopcrtenv_setenv.cpp
lea rcx, [r14 + 2]
lea r8d, [rdx + 1]
call fcn.1400a9088
mov rbx, rax
test rax, rax
je 0x1401d23d1
mov r8, r15
lea rdx, [r14 + 2]
mov rcx, rax
call fcn.1400aa55f
test eax, eax
jne 0x1401d23e3
mov rax, rbx
lea rdx, [r13 + 1]
sub rax, r15
mov rcx, rbx
add rdx, rax
test r12b, r12b
mov byte [rdx - 1], sil
cmovne rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1401d23d1
call fcn.1400a7c15
mov esi, ebp
mov dword [rax], 0x2a
mov edx, 2
mov rcx, rbx
call fcn.1400a641e
jmp 0x1401d210a
mov r9d, 0x146
mov qword [rsp + 0x20], rsi
lea r8, [0x140232cc0]
lea rdx, str.common_set_variable_in_environment_nolock
lea rcx, str.traits::tcscpy_s_name__count__option_
call fcn.1400a7e22
int3
jmp 0x1401d1fb4