Function at 0x140091944
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rdi, r9
mov r15, r8
mov rbx, rdx
mov r12, rcx
lea r14, [0x1400d0018]
mov rcx, qword [0x1400d0018]
cmp rcx, r14
je 0x1400919b6
test byte [rcx + 0x1c], 1
je 0x1400919b6
cmp byte [rcx + 0x19], 5
jb 0x1400919b6
mov edx, 0x57
mov qword [rax - 0x60], r9
mov qword [rax - 0x68], r8
mov r9, rbx
lea r8, [0x1400ba8e8]
mov rcx, qword [rcx + 0x10]
call fcn.14001fa38
xor r13d, r13d
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x10], r13
mov qword [rbp - 8], r13
mov rdx, rbx
lea rcx, [rbp - 0x30]
call fcn.140004b44
nop
lea rcx, [rbp - 0x30]
call fcn.14002ea2c
mov r8, qword [rbp - 0x30]
lea rdx, [rbp - 0x18]
mov rcx, r12
call fcn.140091cb0
mov esi, eax
mov bl, 4
mov r10, qword [0x1400d0018]
cmp r10, r14
je 0x140091a26
test byte [r10 + 0x1c], 2
je 0x140091a26
cmp byte [r10 + 0x19], bl
jb 0x140091a26
lea edx, [r13 + 0x58]
mov r9d, eax
lea r8, [0x1400ba8e8]
mov rcx, qword [r10 + 0x10]
call fcn.1400035c4
mov r10, qword [0x1400d0018]
test esi, esi
jne 0x140091bce
mov rax, qword [0x1400d2e50]
lea rcx, [0x1400d2e50]
mov rax, qword [rax + 0x18]
call qword [case.0x1400688bc.0]
add rax, 0x18
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x28]
mov rdx, r15
lea rcx, [rbp - 0x18]
call fcn.14008bd24
mov r14d, eax
mov rcx, qword [0x1400d0018]
lea rax, [0x1400d0018]
cmp rcx, rax
je 0x140091a95
test byte [rcx + 0x1c], 2
je 0x140091a95
cmp byte [rcx + 0x19], bl
jb 0x140091a95
lea edx, [rsi + 0x59]
mov r9d, r14d
lea r8, [0x1400ba8e8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov rbx, qword [rbp - 0x28]
test r14d, r14d
jne 0x140091ac3
mov rax, rbx
mov r8, rdi
sub r8, rbx
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140091abb
add rax, 2
test edx, edx
jne 0x140091aa7
test ecx, ecx
je 0x140091ba4
test rdi, rdi
je 0x140091c9c
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r13w
jne 0x140091ad0
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [0x1400d0018]
lea rax, [0x1400d0018]
cmp rcx, rax
je 0x140091b3f
test byte [rcx + 0x1c], 2
je 0x140091b3f
cmp byte [rcx + 0x19], 4
jb 0x140091b3f
mov edx, 0x5a
mov r9d, esi
lea r8, [0x1400ba8e8]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
test r14d, r14d
jne 0x140091ba4
mov rdi, qword [rbp - 0x30]
mov rax, qword [r12]
mov edx, 0x3ec
mov rcx, r12
mov rax, qword [rax + 0x48]
call qword [case.0x1400688bc.0]
mov ecx, eax
xor r9d, r9d
mov r8, r15
mov rdx, rdi
call fcn.1400943b8
mov rcx, qword [0x1400d0018]
lea r14, [0x1400d0018]
cmp rcx, r14
je 0x140091bab
test byte [rcx + 0x1c], 2
je 0x140091bab
cmp byte [rcx + 0x19], 4
jb 0x140091bab
mov edx, 0x5b
lea r8, [0x1400ba8e8]
mov rcx, qword [rcx + 0x10]
call fcn.1400034f0
jmp 0x140091bab
lea r14, [0x1400d0018]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140091bff
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400688bc.0]
jmp 0x140091bff
cmp esi, 2
jne 0x140091c06
mov esi, 0x490
cmp r10, r14
je 0x140091c40
test byte [r10 + 0x1c], 2
je 0x140091c06
cmp byte [r10 + 0x19], bl
jb 0x140091c06
mov edx, 0x5c
lea r8, [0x1400ba8e8]
mov rcx, qword [r10 + 0x10]
call fcn.1400034f0
mov r10, qword [0x1400d0018]
cmp r10, r14
je 0x140091c40
test byte [r10 + 0x1c], 1
je 0x140091c40
movzx edx, byte [r10 + 0x19]
mov eax, esi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x140091c40
mov edx, 0x5d
mov r9d, esi
lea r8, [0x1400ba8e8]
mov rcx, qword [r10 + 0x10]
call fcn.1400035c4
nop
mov rdx, qword [rbp - 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140091c66
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x1400688bc.0]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140091c7b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, esi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005068
int3