Function at 0x1400a1ee0
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401c30d4
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 0x1401c2061
call fcn.1400a1a08
mov dword [rax], 0x16
or rax, 0xffffffffffffffff
jmp 0x1401c2189
mov edx, 0x3d
mov rdi, rcx
call fcn.1400a1a4e
mov r13, rax
test rax, rax
je 0x1401c2163
cmp rax, r15
je 0x1401c2163
mov rbp, rax
lea r12, [0x1401f03d0]
sub rbp, r15
mov r14d, 0x7fff
cmp rbp, r14
jl 0x1401c20cb
xor r9d, r9d
lea rax, str.equal_sign___option____MAX_ENV
mov qword [rsp + 0x28], rax
lea rdx, [0x14021a1a0]
mov r8d, 0xa7
mov qword [rsp + 0x20], r12
lea ecx, [r9 + 2]
call fcn.1400a212e
cmp eax, 1
jne 0x1401c20cb
int3
mov rdx, r14
lea rcx, [r13 + 1]
call fcn.1400a3ac4
cmp rax, r14
jb 0x1401c210c
xor r9d, r9d
lea rax, str.traits::tcsnlen_equal_sign__1___MAX_ENV_____MAX_ENV
mov qword [rsp + 0x28], rax
lea rdx, [0x14021a1a0]
mov r8d, 0xa8
mov qword [rsp + 0x20], r12
lea ecx, [r9 + 2]
call fcn.1400a212e
cmp eax, 1
jne 0x1401c210c
int3
cmp byte [r13 + 1], sil
mov r14, qword [0x140244710]
sete r12b
cmp r14, qword [0x140244738]
jne 0x1401c2136
mov rcx, r14
call fcn.1401c2b14
mov r14, rax
mov qword [0x140244710], rax
lea rax, str.minkernelcrtsucrt_srcdesktopcrtenv_setenv.cpp
test r14, r14
jne 0x1401c2278
cmp dword [rsp + 0x68], esi
je 0x1401c21a6
cmp qword [0x140244718], rsi
je 0x1401c21a6
call fcn.1400a2782
test rax, rax
jne 0x1401c222c
call fcn.1400a1a08
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.1400a0315
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 0x1401c2172
mov ebx, 2
mov dword [rsp + 0x20], 0xcf
mov r9, rax
mov r8d, ebx
lea edx, [rbx + 6]
lea ecx, [rbx - 1]
call fcn.1400a2e3a
mov edx, ebx
mov qword [0x140244710], rax
xor ecx, ecx
call fcn.1400a0315
mov r14, qword [0x140244710]
test r14, r14
jne 0x1401c21eb
or rbp, 0xffffffffffffffff
jmp 0x1401c2174
cmp qword [0x140244718], rsi
jne 0x1401c2233
mov edx, 8
mov dword [rsp + 0x20], 0xd9
lea r9, str.minkernelcrtsucrt_srcdesktopcrtenv_setenv.cpp
mov r8d, ebx
lea ecx, [rdx - 7]
call fcn.1400a2e3a
mov edx, ebx
mov qword [0x140244718], rax
xor ecx, ecx
call fcn.1400a0315
cmp qword [0x140244718], rsi
je 0x1401c21e5
mov r14, qword [0x140244710]
test r14, r14
jne 0x1401c2278
lea rax, str.__CRT_logic_error_in_setenv___0_
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14021a1a0]
lea rax, [0x1401f03d0]
mov r8d, 0xec
lea ecx, [r14 + 2]
mov qword [rsp + 0x20], rax
call fcn.1400a212e
cmp eax, 1
jne 0x1401c21e5
int3
cmp qword [r14], rsi
mov rbx, r14
je 0x1401c22b3
mov rdx, qword [rbx]
mov r8, rbp
mov rcx, r15
call fcn.1400a3c95
test eax, eax
jne 0x1401c22a1
mov rax, qword [rbx]
cmp byte [rax + rbp], 0x3d
je 0x1401c22aa
cmp byte [rax + rbp], sil
je 0x1401c22aa
add rbx, 8
cmp qword [rbx], rsi
jmp 0x1401c227e
sub rbx, r14
sar rbx, 3
jmp 0x1401c22bd
sub rbx, r14
sar rbx, 3
neg rbx
test rbx, rbx
js 0x1401c233f
cmp qword [r14], rsi
je 0x1401c233f
mov rcx, qword [r14 + rbx*8]
mov edx, 2
call fcn.1400a0315
test r12b, r12b
jne 0x1401c22ef
mov qword [r14 + rbx*8], r15
jmp 0x1401c23b6
mov rax, qword [r14 + rbx*8 + 8]
mov qword [r14 + rbx*8], rax
inc rbx
cmp qword [r14 + rbx*8], rsi
jne 0x1401c22e3
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.14009fee7
mov edx, 2
xor ecx, ecx
mov rbx, rax
call fcn.1400a0315
test rbx, rbx
je 0x1401c23b9
mov qword [0x140244710], rbx
jmp 0x1401c23b9
test r12b, r12b
jne 0x1401c2176
neg rbx
lea rdx, [rbx + 2]
cmp rdx, rbx
jae 0x1401c235d
or rbp, 0xffffffffffffffff
jmp 0x1401c2178
movabs rax, 0x1fffffffffffffff
cmp rdx, rax
jae 0x1401c2354
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.14009fee7
mov edx, 2
xor ecx, ecx
mov r14, rax
call fcn.1400a0315
test r14, r14
je 0x1401c2354
mov qword [r14 + rbx*8], r15
mov qword [r14 + rbx*8 + 8], rsi
mov qword [0x140244710], r14
mov rdi, rsi
cmp dword [rsp + 0x68], esi
je 0x1401c217a
or rbp, 0xffffffffffffffff
mov r14, rbp
inc r14
cmp byte [r15 + r14], sil
jne 0x1401c23ca
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.1400a2e3a
mov rbx, rax
test rax, rax
je 0x1401c2441
mov r8, r15
lea rdx, [r14 + 2]
mov rcx, rax
call fcn.1400a4285
test eax, eax
jne 0x1401c2453
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 0x1401c2441
call fcn.1400a1a08
mov esi, ebp
mov dword [rax], 0x2a
mov edx, 2
mov rcx, rbx
call fcn.1400a0315
jmp 0x1401c217a
mov r9d, 0x146
mov qword [rsp + 0x20], rsi
lea r8, [0x14021a1a0]
lea rdx, str.common_set_variable_in_environment_nolock
lea rcx, str.traits::tcscpy_s_name__count__option_
call fcn.1400a1c06
int3
jmp 0x1401c2024