Function at 0x1400ef5e0
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1401d2670]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r15d, r9d
mov r14d, r8d
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x60], rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
movzx eax, byte [rbp + 0x1e0]
mov dword [rsp + 0x60], eax
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x70]
call fcn.1401386b0
lea edx, [r12 + 1]
lea rcx, [rbp + 0x70]
call fcn.1400262e0
nop
lea rdx, [0x14016dec8]
lea rcx, [rbp + 0x80]
call fcn.14002e220
mov edx, r14d
mov rcx, rax
call fcn.14002f410
mov rcx, rax
lea rdx, [0x140178df8]
call fcn.14002e220
mov edx, r15d
mov rcx, rax
call fcn.14002f410
mov rcx, rax
lea rdx, str.HIPM
call fcn.14002e220
nop
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
mov dword [rsp + 0x30], 4
mov rcx, qword [rbp + 0xf8]
test cl, 2
jne 0x1400ef6ec
mov rax, qword [rbp + 0xc8]
mov r8, qword [rax]
test r8, r8
je 0x1400ef6ec
mov rax, qword [rbp + 0xa8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0xf0]
cmovb r8, qword [rbp + 0xf0]
sub r8, rdx
jmp 0x1400ef71d
test cl, 4
jne 0x1400ef72b
mov rax, qword [rbp + 0xc0]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400ef72b
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xd8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x38]
call fcn.140027040
nop
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae r8, qword [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r9d, [rdx + 4]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov esi, eax
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400ef7a1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ef79c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ef9ed
call fcn.140144a10
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x70]
call fcn.1401386b0
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.1400262e0
nop
lea rdx, [0x14016dec8]
lea rcx, [rbp - 0x80]
call fcn.14002e220
mov edx, r14d
mov rcx, rax
call fcn.14002f410
mov rcx, rax
lea rdx, [0x140178df8]
call fcn.14002e220
mov edx, r15d
mov rcx, rax
call fcn.14002f410
mov rcx, rax
lea rdx, str.DIPM
call fcn.14002e220
nop
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r12w
mov dword [rsp + 0x30], SafeArrayAccessData
mov rcx, qword [rbp - 8]
test cl, 2
jne 0x1400ef84e
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x1400ef84e
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x1400ef876
test cl, 4
jne 0x1400ef884
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400ef884
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x38]
call fcn.140027040
nop
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae r8, qword [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r9d, [rdx + 4]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov edi, eax
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x1400ef8fa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ef8f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ef9e7
call fcn.140144a10
test esi, esi
je 0x1400ef950
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x38]
call fcn.140021760
nop
lea r9, str.Hipm_registry_set_failed
mov r8d, esi
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140021fb0
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400217e0
nop
lea rcx, [rsp + 0x38]
call fcn.140021ae0
jmp 0x1400ef9af
test edi, edi
je 0x1400ef9a6
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x38]
call fcn.140021760
nop
lea r9, str.Dipm_registry_set_failed
mov r8d, edi
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140021fb0
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400217e0
nop
lea rcx, [rsp + 0x38]
call fcn.140021ae0
jmp 0x1400ef9af
mov rcx, rbx
call fcn.140021760
nop
lea rcx, [rsp + 0x70]
call fcn.1400257e0
nop
lea rcx, [rbp + 0x70]
call fcn.1400257e0
mov rax, rbx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1401449b0
add rsp, 0x280
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140115ca0
nop
call fcn.140115ca0
int3