Function at 0x1400a7b30
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x298
mov rax, qword [0x1408fa960]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rax, qword [rsp + 0x2b0]
cmp dword [rax], 1
je 0x1400a7b76
mov rax, qword [rsp + 0x2b0]
cmp dword [rax], 4
jne 0x1400a7cfc
mov rax, qword [rsp + 0x2a0]
add rax, 0x38
mov rcx, rax
call fcn.140076d80
mov dword [rsp + 0x40], 2
jmp 0x1400a7b9e
mov eax, dword [rsp + 0x40]
dec eax
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jl 0x1400a7c2c
xor edx, edx
mov ecx, dword [rsp + 0x40]
call fcn.1400fdbb0
mov rdx, rax
lea rcx, [rsp + 0x120]
call fcn.1400179b0
nop
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x2a0]
call fcn.1400bec20
nop
lea rcx, [rsp + 0x120]
call fcn.14000a800
mov dl, 1
mov ecx, dword [rsp + 0x40]
call fcn.1400fdbb0
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.1400179b0
nop
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x2a0]
call fcn.1400bec20
nop
lea rcx, [rsp + 0x140]
call fcn.14000a800
jmp 0x1400a7b94
xor edx, edx
mov ecx, dword [reloc.OLEAUT32.dll_SysReAllocString]
call fcn.1400fdd30
mov rdx, rax
lea rcx, [rsp + 0x160]
call fcn.1400179b0
nop
lea rdx, [rsp + 0x160]
mov rcx, qword [rsp + 0x2a0]
call fcn.1400bec20
nop
lea rcx, [rsp + 0x160]
call fcn.14000a800
xor edx, edx
mov ecx, dword [reloc.OLEAUT32.dll_SysReAllocString]
call fcn.1400fde30
mov rdx, rax
lea rcx, [rsp + 0x180]
call fcn.1400179b0
nop
lea rdx, [rsp + 0x180]
mov rcx, qword [rsp + 0x2a0]
call fcn.1400bec20
nop
lea rcx, [rsp + 0x180]
call fcn.14000a800
mov dl, 1
mov ecx, dword [reloc.OLEAUT32.dll_SysReAllocString]
call fcn.1400fde30
mov rdx, rax
lea rcx, [rsp + 0x1a0]
call fcn.1400179b0
nop
lea rdx, [rsp + 0x1a0]
mov rcx, qword [rsp + 0x2a0]
call fcn.1400bec20
nop
lea rcx, [rsp + 0x1a0]
call fcn.14000a800
mov rcx, qword [rsp + 0x2a0]
call fcn.1400c0f50
lea rdx, [0x1402fdcd8]
lea rcx, [rsp + 0x220]
call fcn.1400179b0
nop
lea rdx, str.SystemCurrentControlSetControlSession_ManagerEnvironment
lea rcx, [rsp + 0x200]
call fcn.1400179b0
nop
lea rcx, [rsp + 0x100]
call fcn.14000a280
nop
lea rcx, [rsp + 0x220]
call fcn.14000c690
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x200]
call fcn.14000c690
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x30], 2
mov byte [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x100]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call fcn.1400f6f60
movzx eax, al
test eax, eax
je 0x1400a7db0
lea rcx, [rsp + 0x100]
call fcn.14000c690
mov rdx, rax
lea rcx, [0x1402fdd80]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, [rsp + 0xb0]
call fcn.14000c840
nop
lea rcx, [rsp + 0x98]
call fcn.14000df30
nop
lea r8, [rsp + 0x98]
mov rax, qword [rsp + 0x2b0]
mov edx, dword [rax]
mov rcx, qword [rsp + 0x2a0]
call fcn.1400b87d0
movzx eax, al
test eax, eax
je 0x1400a7ec8
lea rcx, [rsp + 0x98]
call fcn.1400204f0
movzx eax, al
test eax, eax
jne 0x1400a7ec8
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x98]
mov rax, qword [rsp + 0x2b0]
mov r8d, dword [rax]
mov rdx, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2a0]
call fcn.1400b8ea0
lea rcx, [rsp + 0xb0]
call fcn.1400d7bf0
movzx eax, al
test eax, eax
jne 0x1400a7ec8
mov rax, qword [rsp + 0x2a0]
movzx eax, byte [rax + 0x80]
test eax, eax
je 0x1400a7e9a
mov rax, qword [rsp + 0x2a0]
add rax, 0xb8
mov r9, qword [rsp + 0x2b0]
lea r8, [rsp + 0xb0]
mov rdx, rax
mov rcx, qword [rsp + 0x2a0]
call fcn.1400ba460
jmp 0x1400a7ec8
mov rax, qword [rsp + 0x2a0]
add rax, 0xb8
mov r9, qword [rsp + 0x2b0]
lea r8, [rsp + 0xb0]
mov rdx, rax
mov rcx, qword [rsp + 0x2a0]
call fcn.1400ba260
mov rax, qword [rsp + 0x2b0]
cmp dword [rax], 4
jne 0x1400a803e
mov rax, qword [rsp + 0x2a0]
add rax, 0x60
mov rcx, rax
call fcn.14000e130
mov rcx, rax
call fcn.140072260
mov dword [rsp + 0x44], eax
mov rax, qword [rsp + 0x2a0]
add rax, 0x60
mov rcx, rax
call fcn.14000e130
mov qword [rsp + 0x58], rax
lea rdx, [0x1402fdce8]
lea rcx, [rsp + 0x1e0]
call fcn.1400179b0
nop
lea r8, [rsp + 0x1e0]
lea rdx, [rsp + 0x260]
mov rcx, qword [rsp + 0x58]
call fcn.140091d10
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.14000c690
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x2a0]
add rax, 0x60
mov rcx, rax
call fcn.14000e130
mov qword [rsp + 0x70], rax
lea rdx, [0x1402fdda8]
lea rcx, [rsp + 0x1c0]
call fcn.1400179b0
nop
lea r8, [rsp + 0x1c0]
lea rdx, [rsp + 0x240]
mov rcx, qword [rsp + 0x70]
call fcn.140091d10
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x80]
call fcn.14000c690
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x88]
lea r8, [0x1402fdd90]
mov rdx, qword [rsp + 0x90]
mov rcx, 0xffffffff80000002
call fcn.1400fa500
nop
lea rcx, [rsp + 0x240]
call fcn.14000a800
nop
lea rcx, [rsp + 0x1c0]
call fcn.14000a800
nop
lea rcx, [rsp + 0x260]
call fcn.14000a800
nop
lea rcx, [rsp + 0x1e0]
call fcn.14000a800
nop
lea rcx, [rsp + 0x98]
call fcn.1400d06b0
nop
lea rcx, [rsp + 0xb0]
call fcn.14000c8d0
nop
lea rcx, [rsp + 0x100]
call fcn.14000a800
nop
lea rcx, [rsp + 0x200]
call fcn.14000a800
nop
lea rcx, [rsp + 0x220]
call fcn.14000a800
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140222a60
add rsp, 0x298
ret