Function at 0x140048868
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x1d0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x140197e90]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rbp, rdx
mov rsi, rcx
mov r8d, dword [0x14019fd80]
lea ecx, [r8 + 2]
lea eax, [r8 + 1]
imul ecx, eax
imul ecx, r8d
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xf
sub ecx, edx
or r12, 0xffffffffffffffff
cmp ecx, 7
jne 0x140048918
mov eax, 0x51eb851f
imul r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub r8d, edx
add r8d, 0x141
movsxd rcx, r8d
lea eax, [r12 + 5]
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.1400b8688
mov rcx, rax
call fcn.1400ba0bc
lea rdi, [rsi + 0x1b0]
mov edx, 0x5c
mov rcx, qword [rdi]
call fcn.1400bb8f8
test rax, rax
jne 0x140048936
mov eax, r12d
jmp 0x14004893c
sub rax, qword [rdi]
sar rax, 1
lea r8d, [rax + 1]
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140021298
nop
mov ecx, dword [0x14019fd80]
imul ecx, ecx
mov r14d, 0x2aaaaaab
mov eax, r14d
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
mov ebx, 1
cmp ecx, 0xb
jne 0x140048984
sub dword [0x1401a1238], ebx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, qword [rsi + 0x2d8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140048a12
call fcn.14004117c
mov r8, rax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call fcn.140017478
nop
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rbp
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov ecx, r12d
lock xadd dword [rdx + 0x10], ecx
add ecx, r12d
test ecx, ecx
jg 0x140048a0a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
je 0x140048ae0
call fcn.140041ba0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140001cb0
nop
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.1400495d0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov ecx, r12d
lock xadd dword [rdx + 0x10], ecx
add ecx, r12d
test ecx, ecx
jg 0x140048a55
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov r10d, dword [0x14019fd80]
mov ecx, r10d
imul ecx, r10d
mov eax, r14d
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0xb
jne 0x140048ade
xor r8d, r8d
lea r9, [rsp + 0x60]
mov dil, r10b
sub dil, r8b
mov r11d, ebx
mov esi, 0xb
xor ebp, ebp
mov eax, r10d
cdq
idiv r11d
mov r15d, edx
mov r14d, ebx
mov eax, r10d
cdq
idiv r14d
mov ecx, eax
mov al, dil
imul cl
mov cl, al
mov al, r15b
imul cl
mov byte [r9 + rbp], al
add r14d, ebx
add rbp, rbx
cmp rbp, 0x10
jl 0x140048aa4
add r11d, ebx
add r9, 0x10
sub rsi, rbx
jne 0x140048a95
add r8d, ebx
cmp r8d, 2
jl 0x140048a87
xor bl, bl
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov ecx, r12d
lock xadd dword [rdx + 0x10], ecx
add ecx, r12d
test ecx, ecx
jg 0x140048b02
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov al, bl
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400b9010
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret