Function at 0x1400a918d
Capabilities:
Set environment variable

Disassembly:
jmp 0x1401d6724
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 0x1401d56b1
call fcn.1400a8c6f
mov dword [rax], socket
or rax, 0xffffffffffffffff
jmp 0x1401d57d9
mov edx, 0x3d
mov rdi, rcx
call fcn.1400a8cb5
mov r13, rax
test rax, rax
je 0x1401d57b3
cmp rax, r15
je 0x1401d57b3
mov rbp, rax
lea r12, [0x140204948]
sub rbp, r15
mov r14d, 0x7fff
cmp rbp, r14
jl 0x1401d571b
xor r9d, r9d
lea rax, str.equal_sign___option____MAX_ENV
mov qword [rsp + 0x28], rax
lea rdx, [0x140235150]
mov r8d, 0xa7
mov qword [rsp + 0x20], r12
lea ecx, [r9 + 2]
call fcn.1400a93ea
cmp eax, 1
jne 0x1401d571b
int3
mov rdx, r14
lea rcx, [r13 + 1]
call fcn.1400aae11
cmp rax, r14
jb 0x1401d575c
xor r9d, r9d
lea rax, str.traits::tcsnlen_equal_sign__1___MAX_ENV_____MAX_ENV
mov qword [rsp + 0x28], rax
lea rdx, [0x140235150]
mov r8d, 0xa8
mov qword [rsp + 0x20], r12
lea ecx, [r9 + 2]
call fcn.1400a93ea
cmp eax, 1
jne 0x1401d575c
int3
cmp byte [r13 + 1], sil
mov r14, qword [0x14025d178]
sete r12b
cmp r14, qword [0x14025d1a0]
jne 0x1401d5786
mov rcx, r14
call fcn.1401d6164
mov r14, rax
mov qword [0x14025d178], rax
lea rax, str.minkernelcrtsucrt_srcdesktopcrtenv_setenv.cpp
test r14, r14
jne 0x1401d58c8
cmp dword [rsp + 0x68], esi
je 0x1401d57f6
cmp qword [0x14025d180], rsi
je 0x1401d57f6
call fcn.1400a9a7a
test rax, rax
jne 0x1401d587c
call fcn.1400a8c6f
or rsi, 0xffffffffffffffff
mov dword [rax], socket
mov ebp, esi
mov esi, ebp
mov ebp, esi
mov esi, ebp
mov edx, 2
mov rcx, rdi
call fcn.1400a742d
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 0x1401d57c2
mov ebx, 2
mov dword [rsp + 0x20], 0xcf
mov r9, rax
mov r8d, ebx
lea edx, [rbx + 6]
lea ecx, [rbx - 1]
call fcn.1400aa10a
mov edx, ebx
mov qword [0x14025d178], rax
xor ecx, ecx
call fcn.1400a742d
mov r14, qword [0x14025d178]
test r14, r14
jne 0x1401d583b
or rbp, 0xffffffffffffffff
jmp 0x1401d57c4
cmp qword [0x14025d180], rsi
jne 0x1401d5883
mov edx, 8
mov dword [rsp + 0x20], 0xd9
lea r9, str.minkernelcrtsucrt_srcdesktopcrtenv_setenv.cpp
mov r8d, ebx
lea ecx, [rdx - 7]
call fcn.1400aa10a
mov edx, ebx
mov qword [0x14025d180], rax
xor ecx, ecx
call fcn.1400a742d
cmp qword [0x14025d180], rsi
je 0x1401d5835
mov r14, qword [0x14025d178]
test r14, r14
jne 0x1401d58c8
lea rax, str.__CRT_logic_error_in_setenv___0_
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140235150]
lea rax, [0x140204948]
mov r8d, 0xec
lea ecx, [r14 + 2]
mov qword [rsp + 0x20], rax
call fcn.1400a93ea
cmp eax, 1
jne 0x1401d5835
int3
cmp qword [r14], rsi
mov rbx, r14
je 0x1401d5903
mov rdx, qword [rbx]
mov r8, rbp
mov rcx, r15
call fcn.1400aafe2
test eax, eax
jne 0x1401d58f1
mov rax, qword [rbx]
cmp byte [rax + rbp], 0x3d
je 0x1401d58fa
cmp byte [rax + rbp], sil
je 0x1401d58fa
add rbx, 8
cmp qword [rbx], rsi
jmp 0x1401d58ce
sub rbx, r14
sar rbx, 3
jmp 0x1401d590d
sub rbx, r14
sar rbx, 3
neg rbx
test rbx, rbx
js 0x1401d598f
cmp qword [r14], rsi
je 0x1401d598f
mov rcx, qword [r14 + rbx*8]
mov edx, 2
call fcn.1400a742d
test r12b, r12b
jne 0x1401d593f
mov qword [r14 + rbx*8], r15
jmp 0x1401d5a06
mov rax, qword [r14 + rbx*8 + 8]
mov qword [r14 + rbx*8], rax
inc rbx
cmp qword [r14 + rbx*8], rsi
jne 0x1401d5933
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.1400a6fb9
mov edx, 2
xor ecx, ecx
mov rbx, rax
call fcn.1400a742d
test rbx, rbx
je 0x1401d5a09
mov qword [0x14025d178], rbx
jmp 0x1401d5a09
test r12b, r12b
jne 0x1401d57c6
neg rbx
lea rdx, [rbx + 2]
cmp rdx, rbx
jae 0x1401d59ad
or rbp, 0xffffffffffffffff
jmp 0x1401d57c8
movabs rax, 0x1fffffffffffffff
cmp rdx, rax
jae 0x1401d59a4
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.1400a6fb9
mov edx, 2
xor ecx, ecx
mov r14, rax
call fcn.1400a742d
test r14, r14
je 0x1401d59a4
mov qword [r14 + rbx*8], r15
mov qword [r14 + rbx*8 + 8], rsi
mov qword [0x14025d178], r14
mov rdi, rsi
cmp dword [rsp + 0x68], esi
je 0x1401d57ca
or rbp, 0xffffffffffffffff
mov r14, rbp
inc r14
cmp byte [r15 + r14], sil
jne 0x1401d5a1a
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.1400aa10a
mov rbx, rax
test rax, rax
je 0x1401d5a91
mov r8, r15
lea rdx, [r14 + 2]
mov rcx, rax
call fcn.1400ab609
test eax, eax
jne 0x1401d5aa3
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 0x1401d5a91
call fcn.1400a8c6f
mov esi, ebp
mov dword [rax], 0x2a
mov edx, 2
mov rcx, rbx
call fcn.1400a742d
jmp 0x1401d57ca
mov r9d, 0x146
mov qword [rsp + 0x20], rsi
lea r8, [0x140235150]
lea rdx, str.common_set_variable_in_environment_nolock
lea rcx, str.traits::tcscpy_s_name__count__option_
call fcn.1400a8e81
int3
jmp 0x1401d5674