Function at 0x18004d3a0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x410
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1800ba600]
xor rax, rsp
mov qword [rsp + 0x400], rax
mov r12, r8
mov rsi, rdx
mov rbp, rcx
mov qword [r11 - 0x3b8], rcx
mov qword [r11 - 0x3b0], rdx
mov qword [r11 - 0x3a8], r8
xor r13d, r13d
mov dword [rsp + 0x50], r13d
xor ecx, ecx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsp + 0x58], r13
lea ecx, [r13 + 0x66]
call fcn.180044340
cmp rax, r13
je 0x18004d42a
movzx edx, word [rax]
lea rcx, [rax + 2]
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov qword [rsp + 0x58], rax
mov rdx, qword [rsp + 0x58]
lea rdi, [0x1800bd5b8]
mov rcx, rdi
call fcn.18000788c
mov r11, qword [0x1800bd5a0]
cmp r11, r13
je 0x18004d45f
mov rcx, qword [r11]
cmp rcx, r13
je 0x18004d45a
call qword [sym.imp.OLEAUT32.dll_VariantInit]
jmp 0x18004d462
mov eax, r13d
jmp 0x18004d462
mov eax, r13d
mov r15d, 0x104
cmp eax, r13d
jne 0x18004d4cc
mov rbx, qword [0x1800bd5b8]
cmp rbx, r13
je 0x18004d491
cmp qword [rbx + 8], r13
jne 0x18004d48b
mov rcx, qword [rbx]
call fcn.18007d5b0
mov qword [rbx + 8], rax
mov rbx, qword [rbx + 8]
jmp 0x18004d494
mov rbx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, str._s0x_x
mov rdx, r15
lea rcx, [rsp + 0x2f0]
call fcn.18000d8e4
lea rdx, [rsp + 0x2f0]
lea rcx, [0x1800bd5a0]
call fcn.1800077a0
mov rdx, rsi
lea rcx, [0x1800bd558]
call fcn.180016828
lea rdx, [0x180094694]
lea rcx, [rsp + 0x48]
call fcn.180002188
nop
lea rdx, [0x180090504]
lea rcx, [rsp + 0x40]
call fcn.180002188
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, rdi
call fcn.180016958
nop
mov r8, rsi
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.180016958
nop
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.180016958
mov rdx, rax
lea rcx, [0x1800bd5b0]
call fcn.180016828
or r14d, 0xffffffff
mov rbx, qword [rsp + 0x68]
cmp rbx, r13
je 0x18004d590
mov eax, r14d
lock xadd dword [rbx + 0x10], eax
add eax, r14d
jne 0x18004d58b
cmp rbx, r13
je 0x18004d58b
mov rcx, qword [rbx]
cmp rcx, r13
je 0x18004d575
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x18004d583
call fcn.180064200
mov rcx, rbx
call fcn.18006419c
mov qword [rsp + 0x68], r13
mov rbx, qword [rsp + 0x70]
cmp rbx, r13
je 0x18004d5d5
mov eax, r14d
lock xadd dword [rbx + 0x10], eax
add eax, r14d
jne 0x18004d5d0
cmp rbx, r13
je 0x18004d5d0
mov rcx, qword [rbx]
cmp rcx, r13
je 0x18004d5ba
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x18004d5c8
call fcn.180064200
mov rcx, rbx
call fcn.18006419c
mov qword [rsp + 0x70], r13
mov rbx, qword [rsp + 0x80]
cmp rbx, r13
je 0x18004d620
mov eax, r14d
lock xadd dword [rbx + 0x10], eax
add eax, r14d
jne 0x18004d618
cmp rbx, r13
je 0x18004d618
mov rcx, qword [rbx]
cmp rcx, r13
je 0x18004d602
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x18004d610
call fcn.180064200
mov rcx, rbx
call fcn.18006419c
mov qword [rsp + 0x80], r13
mov rax, qword [rsp + 0x40]
cmp rax, r13
je 0x18004d661
mov ecx, r14d
lock xadd dword [rax + 0x10], ecx
add ecx, r14d
jne 0x18004d661
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rbx]
cmp rcx, r13
je 0x18004d64a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x18004d658
call fcn.180064200
mov rcx, rbx
call fcn.18006419c
nop
mov rax, qword [rsp + 0x48]
cmp rax, r13
je 0x18004d6a1
mov ecx, r14d
lock xadd dword [rax + 0x10], ecx
add ecx, r14d
jne 0x18004d6a1
mov rbx, qword [rsp + 0x48]
mov rcx, qword [rbx]
cmp rcx, r13
je 0x18004d68b
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x18004d699
call fcn.180064200
mov rcx, rbx
call fcn.18006419c
mov r8, rdi
lea rdx, [rsp + 0x88]
mov rcx, r12
call fcn.180016958
mov rdx, rax
lea rcx, [0x1800bd5a8]
call fcn.180016828
mov rbx, qword [rsp + 0x88]
cmp rbx, r13
je 0x18004d706
mov eax, r14d
lock xadd dword [rbx + 0x10], eax
add eax, r14d
jne 0x18004d706
cmp rbx, r13
je 0x18004d706
mov rcx, qword [rbx]
cmp rcx, r13
je 0x18004d6f0
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x18004d6fe
call fcn.180064200
mov rcx, rbx
call fcn.18006419c
mov rbx, qword [0x1800bd5a0]
cmp rbx, r13
je 0x18004d72a
cmp qword [rbx + 8], r13
jne 0x18004d724
mov rcx, qword [rbx]
call fcn.18007d5b0
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
jmp 0x18004d72d
mov rcx, r13
mov r8d, r15d
lea rdx, [rsp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, r13d
jne 0x18004d7d5
mov ecx, 0x50
call fcn.180064d40
mov qword [rsp + 0x30], rax
cmp rax, r13
je 0x18004d768
mov rcx, rax
call fcn.18004b920
mov rdi, rax
jmp 0x18004d76b
mov rdi, r13
mov qword [rsp + 0x60], r13
mov rax, qword [rdi]
lea r8, [rsp + 0x60]
lea rdx, [0x180093ea8]
mov rcx, rdi
call qword [rax]
mov rbx, qword [0x1800bd5b8]
cmp rbx, r13
je 0x18004d7a8
cmp qword [rbx + 8], r13
jne 0x18004d7a2
mov rcx, qword [rbx]
call fcn.18007d5b0
mov qword [rbx + 8], rax
mov rdx, qword [rbx + 8]
jmp 0x18004d7ab
mov rdx, r13
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
mov qword [rsp + 0x20], r13
mov r9, qword [rsp + 0x60]
lea r8, str._I64p__d
mov rdx, r15
lea rcx, [rsp + 0x1e0]
call fcn.18000d8e4
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x78], r13
mov qword [rsp + 0x1d0], SafeArrayUnaccessData
mov qword [rsp + 0x1c8], r13
mov byte [rsp + 0x1b8], r13b
lea rcx, [rsp + 0x1e0]
call fcn.180064df0
mov r8, rax
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0x1b0]
call fcn.180005ecc
lea rcx, [0x180094694]
call fcn.180064df0
mov r9, rax
xor r8d, r8d
lea rdx, [0x180094694]
lea rcx, [rsp + 0x1b0]
call fcn.18000e3d8
mov rbx, rax
lea rcx, [0x180094690]
call fcn.180064df0
mov qword [rsp + 0x20], rax
lea r9, [0x180094690]
mov edi, 1
mov r8, rdi
mov rdx, rbx
lea rcx, [rsp + 0x1b0]
call fcn.180047a28
mov r8d, edi
lea edx, [rdi + 2]
lea rcx, [rsp + 0xb0]
call fcn.18004b84c
nop
mov rax, qword [rsp + 0xc0]
movsxd rcx, dword [rax + 4]
and dword [rsp + rcx + 0xd8], 0xfffff9ff
bts dword [rsp + rcx + 0xd8], 0xb
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0xc0]
call fcn.18004b1c4
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xb0]
call fcn.18004b6f0
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xb0]
call fcn.18004b54c
mov rdi, qword [rsp + 0x78]
mov eax, dword [rsp + 0x38]
inc eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x20], eax
mov r9, rdi
lea r8, str._I64p__d
mov rdx, r15
lea rcx, [rsp + 0x1e0]
call fcn.18000d8e4
mov rbx, qword [0x1800bd5a0]
cmp rbx, r13
je 0x18004d937
cmp qword [rbx + 8], r13
jne 0x18004d931
mov rcx, qword [rbx]
call fcn.18007d5b0
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 8]
jmp 0x18004d93a
mov rcx, r13
lea rdx, [rsp + 0x1e0]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp rdi, r13
je 0x18004d980
mov rbx, qword [rsi]
cmp rbx, r13
je 0x18004d96d
cmp qword [rbx + 8], r13
jne 0x18004d967
mov rcx, qword [rbx]
call fcn.18007d5b0
mov qword [rbx + 8], rax
mov rdx, qword [rbx + 8]
jmp 0x18004d970
mov rdx, r13
mov rax, qword [rdi]
lea r8, [fcn.18004c630]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rax, qword [0x1800bd5b8]
mov qword [rbp], rax
cmp rax, r13
je 0x18004d995
lock add dword [rax + 0x10], 1
mov dword [rsp + 0x50], 1
lea rcx, [rsp + 0x148]
call fcn.1800469c0
lea r11, vtable.std::ios_base.0
mov qword [rsp + 0x148], r11
lea rcx, [rsp + 0x148]
call fcn.18007e11c
nop
cmp qword [rsp + 0x1d0], 0x10
jb 0x18004d9df
mov rcx, qword [rsp + 0x1b8]
call fcn.18006419c
mov qword [rsp + 0x1d0], SafeArrayUnaccessData
mov qword [rsp + 0x1c8], r13
mov byte [rsp + 0x1b8], r13b
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rbx, qword [rsi]
cmp rbx, r13
je 0x18004da48
mov eax, r14d
lock xadd dword [rbx + 0x10], eax
add eax, r14d
jne 0x18004da45
cmp rbx, r13
je 0x18004da45
mov rcx, qword [rbx]
cmp rcx, r13
je 0x18004da2f
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x18004da3d
call fcn.180064200
mov rcx, rbx
call fcn.18006419c
mov qword [rsi], r13
mov rbx, qword [r12]
cmp rbx, r13
je 0x18004da8b
mov eax, r14d
lock xadd dword [rbx + 0x10], eax
add eax, r14d
jne 0x18004da87
cmp rbx, r13
je 0x18004da87
mov rcx, qword [rbx]
cmp rcx, r13
je 0x18004da71
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbx + 8]
cmp rcx, r13
je 0x18004da7f
call fcn.180064200
mov rcx, rbx
call fcn.18006419c
mov qword [r12], r13
mov rax, rbp
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.180064d20
mov rbx, qword [rsp + 0x468]
add rsp, 0x410
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret