Function at 0x1400f0e20
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x1401d6668]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r12d, r9d
mov r15d, r8d
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x78], rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
movzx eax, byte [rbp + 0x200]
mov dword [rsp + 0x78], eax
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x80]
call fcn.14013a3a0
lea edx, [r13 + 1]
lea rcx, [rbp + 0x80]
call fcn.140027810
nop
lea rdx, [0x14016ff68]
lea rcx, [rbp + 0x90]
call fcn.14002fb70
mov edx, r15d
mov rcx, rax
call fcn.140030ec0
mov rcx, rax
lea rdx, [0x14017ae98]
call fcn.14002fb70
mov edx, r12d
mov rcx, rax
call fcn.140030ec0
mov rcx, rax
lea rdx, str.HIPM
call fcn.14002fb70
nop
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], r13
mov edi, 7
mov r9d, edi
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x50], r13w
mov dword [rsp + 0x30], 4
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov rcx, qword [rbp + 0x108]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400f0f4a
mov rax, qword [rbp + 0xd8]
mov r8, qword [rax]
test r8, r8
je 0x1400f0f4a
mov rax, qword [rbp + 0xb8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x100]
cmovb r8, qword [rbp + 0x100]
sub r8, rdx
sar r8, 1
jmp 0x1400f0f8a
test cl, 4
jne 0x1400f0f80
mov rax, qword [rbp + 0xd0]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400f0f80
mov rax, qword [rbp + 0xb0]
mov rdx, qword [rax]
mov rax, qword [rbp + 0xe8]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
jmp 0x1400f0f8a
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1400f0f9e
lea rcx, [rsp + 0x50]
call fcn.1400284d0
mov r9, qword [rsp + 0x68]
lea r8, [rsp + 0x50]
cmp r9, 8
cmovae r8, qword [rsp + 0x50]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r9d, [rdx + 4]
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov esi, eax
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400f1012
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f100d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400f1284
call fcn.140146acc
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x80]
call fcn.14013a3a0
mov edx, 1
lea rcx, [rbp - 0x80]
call fcn.140027810
nop
lea rdx, [0x14016ff68]
lea rcx, [rbp - 0x70]
call fcn.14002fb70
mov edx, r15d
mov rcx, rax
call fcn.140030ec0
mov rcx, rax
lea rdx, [0x14017ae98]
call fcn.14002fb70
mov edx, r12d
mov rcx, rax
call fcn.140030ec0
mov rcx, rax
lea rdx, str.DIPM
call fcn.14002fb70
nop
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x50], r13w
mov dword [rsp + 0x30], SafeArrayUnlock
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov rcx, qword [rbp + 8]
test cl, 2
je 0x1400f10aa
test cl, 0x20
je 0x1400f10ce
mov rax, qword [rbp - 0x28]
mov r8, qword [rax]
test r8, r8
je 0x1400f10ce
mov rax, qword [rbp - 0x48]
mov rdx, qword [rax]
cmp r8, qword [rbp]
cmovb r8, qword [rbp]
sub r8, rdx
sar r8, 1
jmp 0x1400f1105
test cl, 4
jne 0x1400f10fb
mov rax, qword [rbp - 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400f10fb
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x18]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
jmp 0x1400f1105
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x1400f1119
lea rcx, [rsp + 0x50]
call fcn.1400284d0
mov rdi, qword [rsp + 0x68]
lea r8, [rsp + 0x50]
cmp rdi, 8
cmovae r8, qword [rsp + 0x50]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r9d, [rdx + 4]
mov rcx, qword [r14]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov edi, eax
mov rdx, qword [rsp + 0x68]
cmp rdx, 8
jb 0x1400f118d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400f1188
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400f127e
call fcn.140146acc
test esi, esi
je 0x1400f11e3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x50]
call fcn.140022e10
nop
lea r9, str.Hipm_registry_set_failed
mov r8d, esi
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140023660
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140022e90
nop
lea rcx, [rsp + 0x50]
call fcn.140023190
jmp 0x1400f1242
test edi, edi
je 0x1400f1239
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x50]
call fcn.140022e10
nop
lea r9, str.Dipm_registry_set_failed
mov r8d, edi
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140023660
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140022e90
nop
lea rcx, [rsp + 0x50]
call fcn.140023190
jmp 0x1400f1242
mov rcx, rbx
call fcn.140022e10
nop
lea rcx, [rbp - 0x80]
call fcn.140026d00
nop
lea rcx, [rbp + 0x80]
call fcn.140026d00
mov rax, rbx
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140146a70
add rsp, 0x298
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140117a1c
nop
call fcn.140117a1c
int3