Function at 0x140174100
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor esi, esi
mov ebx, edx
mov r15, rcx
test rcx, rcx
jne 0x140173758
call fcn.140129588
mov dword [rax], 0x16
or rax, 0xffffffffffffffff
jmp 0x1401737ec
mov edx, 0x3d
mov rdi, rcx
call fcn.14011b8a4
mov r13, rax
test rax, rax
je 0x1401737cb
cmp rax, r15
je 0x1401737cb
cmp byte [rax + 1], sil
mov r14, qword [0x1401c7f00]
sete bpl
cmp r14, qword [0x1401c7f18]
mov byte [rsp + 0x70], bpl
jne 0x1401737a1
mov rcx, r14
call fcn.140173d00
mov r14, rax
mov qword [0x1401c7f00], rax
mov r12d, 1
test r14, r14
jne 0x14017386f
test ebx, ebx
je 0x140173804
cmp qword [0x1401c7f08], rsi
je 0x140173804
call fcn.140161960
test rax, rax
jne 0x140173863
call fcn.140129588
or rsi, 0xffffffffffffffff
mov dword [rax], 0x16
mov ebp, esi
mov esi, ebp
mov ebp, esi
mov esi, ebp
mov rcx, rdi
call fcn.140167b04
mov eax, esi
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test bpl, bpl
jne 0x1401737da
mov edx, 8
mov rcx, r12
call fcn.14016c684
xor ecx, ecx
mov qword [0x1401c7f00], rax
call fcn.140167b04
mov r14, qword [0x1401c7f00]
test r14, r14
jne 0x140173836
or rbp, 0xffffffffffffffff
jmp 0x1401737dc
cmp qword [0x1401c7f08], rsi
jne 0x14017386a
mov edx, 8
mov rcx, r12
call fcn.14016c684
xor ecx, ecx
mov qword [0x1401c7f08], rax
call fcn.140167b04
cmp qword [0x1401c7f08], rsi
je 0x140173830
mov r14, qword [0x1401c7f00]
test r14, r14
je 0x140173830
mov r12, r13
mov rbx, r14
sub r12, r15
cmp qword [r14], rsi
je 0x1401738b1
mov rdx, qword [rbx]
mov r8, r12
mov rcx, r15
call fcn.14017cffc
test eax, eax
jne 0x14017389f
mov rax, qword [rbx]
cmp byte [r12 + rax], 0x3d
je 0x1401738a8
cmp byte [r12 + rax], sil
je 0x1401738a8
add rbx, 8
cmp qword [rbx], rsi
jmp 0x14017387b
sub rbx, r14
sar rbx, 3
jmp 0x1401738bb
sub rbx, r14
sar rbx, 3
neg rbx
test rbx, rbx
js 0x140173917
cmp qword [r14], rsi
je 0x140173917
mov rcx, qword [r14 + rbx*8]
call fcn.140167b04
test bpl, bpl
jne 0x1401738e8
mov qword [r14 + rbx*8], r15
jmp 0x140173971
mov rax, qword [r14 + rbx*8 + 8]
mov qword [r14 + rbx*8], rax
inc rbx
cmp qword [r14 + rbx*8], rsi
jne 0x1401738dc
mov r8d, 8
mov rdx, rbx
mov rcx, r14
call fcn.14016016c
xor ecx, ecx
mov rbx, rax
call fcn.140167b04
test rbx, rbx
je 0x140173974
mov qword [0x1401c7f00], rbx
jmp 0x140173974
test bpl, bpl
jne 0x1401737de
neg rbx
lea rdx, [rbx + 2]
cmp rdx, rbx
jae 0x140173935
or rbp, 0xffffffffffffffff
jmp 0x1401737e0
movabs rax, 0x1fffffffffffffff
cmp rdx, rax
jae 0x14017392c
mov r8d, 8
mov rcx, r14
call fcn.14016016c
xor ecx, ecx
mov r14, rax
call fcn.140167b04
test r14, r14
je 0x14017392c
mov qword [r14 + rbx*8], r15
mov qword [r14 + rbx*8 + 8], rsi
mov qword [0x1401c7f00], r14
mov rdi, rsi
cmp dword [rsp + 0x78], esi
je 0x1401737e2
or rbp, 0xffffffffffffffff
mov r14, rbp
inc r14
cmp byte [r15 + r14], sil
jne 0x140173985
mov edx, 1
lea rcx, [r14 + 2]
call fcn.14016c684
mov rbx, rax
test rax, rax
je 0x1401739eb
mov r8, r15
lea rdx, [r14 + 2]
mov rcx, rax
call fcn.1401296fc
test eax, eax
jne 0x1401739f8
mov rax, rbx
lea rdx, [r13 + 1]
sub rax, r15
mov rcx, rbx
add rdx, rax
cmp byte [rsp + 0x70], sil
mov byte [rdx - 1], sil
cmovne rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1401739eb
call fcn.140129588
mov esi, ebp
mov dword [rax], 0x2a
mov rcx, rbx
call fcn.140167b04
jmp 0x1401737e2
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.14012942c
int3
jmp 0x140173720