Function at 0x140075d24
Capabilities:
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 + 8], rcx
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rax, rcx
mov r12, r8
lea rcx, [rbp + 0x50]
mov qword [r11 - 0x40], rcx
mov rdi, r9
mov r14d, edx
xor esi, esi
lea r9, [rbp - 0x10]
xor r8d, r8d
mov rcx, rax
mov rdx, r12
mov ebx, esi
mov qword [r11 - 0x48], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or r15, 0xffffffffffffffff
test eax, eax
je 0x140075dbe
cmp eax, 2
jne 0x140075db3
test rdi, rdi
je 0x140075d9d
mov rax, r15
inc rax
cmp word [rdi + rax*2], si
jne 0x140075d8b
lea ecx, [rax*2 + 2]
jmp 0x140075dcb
mov edx, 2
lea rcx, [0x1400054b0]
call fcn.1400782c8
jmp 0x140075f2d
mov edx, eax
lea rcx, [0x140005540]
jmp 0x140075da9
cmp dword [rbp - 0x10], r14d
jne 0x140075f86
mov ecx, dword [rbp + 0x50]
mov eax, 0x20
test ecx, ecx
cmove ecx, eax
mov eax, ecx
mov dword [rbp + 0x50], ecx
lea esi, [rcx + 2]
and eax, 1
add esi, eax
mov ecx, esi
mov r13d, esi
call fcn.140072274
mov rbx, rax
test rax, rax
je 0x140075f2b
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x50]
lea r9, [rbp - 0x10]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [rsi - 1]
mov byte [rcx + rbx], 0
lea ecx, [rsi - 2]
mov byte [rcx + rbx], 0
test byte [rbp + 0x50], 1
je 0x140075e39
lea ecx, [rsi - 3]
xor esi, esi
mov byte [rcx + rbx], sil
jmp 0x140075e3b
xor esi, esi
test eax, eax
je 0x140075eb5
cmp eax, 2
jne 0x140075db3
test rdi, rdi
je 0x140075ea7
mov r8, rdi
mov rdx, r13
mov rcx, rbx
call fcn.14002e540
test eax, eax
jns 0x140075e6d
mov edx, eax
lea rcx, [0x140005580]
jmp 0x140075da9
mov eax, dword [rbp + 0x50]
mov rcx, qword [rbp + 0x30]
mov r9d, r14d
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov rdx, r12
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140075eb5
lea rcx, [0x140005620]
mov r8d, eax
mov rdx, r12
call fcn.1400782c8
jmp 0x140075f2d
lea rcx, [0x1400055c0]
call fcn.1400782c8
jmp 0x140075f2d
cmp r14d, 2
jne 0x140075f0a
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r14d, eax
test eax, eax
je 0x140075f2d
lea ecx, [rax*2 + 2]
mov dword [rbp + 0x50], ecx
call fcn.140072274
mov rsi, rax
test rax, rax
je 0x140075f2b
mov r8d, r14d
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x140075f0f
cmp eax, r14d
jg 0x140075f0f
mov rcx, rbx
call fcn.140072328
mov rbx, rsi
mov rax, rbx
jmp 0x140075f88
mov rcx, rsi
call fcn.140072328
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140005670]
mov edx, eax
call fcn.1400782c8
xor esi, esi
mov rcx, rbx
call fcn.140072328
test rdi, rdi
je 0x140075f86
inc r15
cmp word [rdi + r15*2], si
jne 0x140075f3a
lea eax, [r15*2 + 2]
mov ecx, eax
mov dword [rbp + 0x50], eax
call fcn.140072274
mov rbx, rax
test rax, rax
je 0x140075f86
mov edx, dword [rbp + 0x50]
mov r8, rdi
mov rcx, rax
call fcn.14002e540
test eax, eax
jns 0x140075f0a
lea rcx, [0x1400056c8]
mov edx, eax
call fcn.1400782c8
mov rcx, rbx
call fcn.140072328
xor eax, eax
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret