Function at 0x18001d310
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0xa0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r15, r8
mov r13d, edx
mov r12, rcx
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x41], rbx
mov eax, dword [0x180069c80]
mov edx, eax
imul edx, eax
imul edx, eax
and edx, 0x8000000f
jge 0x18001d37e
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 0xc
jne 0x18001d38f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x180069c80], eax
lea rcx, [0x180066048]
mov rax, qword [0x180066048]
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rbp - 0x39], rdi
mov r14, qword [rbp + 0x7f]
mov rax, qword [r14]
or rsi, 0xffffffffffffffff
cmp dword [rax - 0x10], 0
je 0x18001d43e
lea r8, [0x180055dd0]
mov rdx, r14
lea rcx, [rbp - 9]
call fcn.180001c40
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rdi, 0xffffffffffffffe8
cmp rcx, rdi
je 0x18001d422
cmp dword [rdi + 0x10], 0
jl 0x18001d414
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x18001d414
call fcn.180002110
mov rbx, rax
lock add dword [rdi + 0x10], esi
jg 0x18001d40a
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rVariantCopy + 8]
lea rax, [rbx + 0x18]
mov qword [rbp - 0x39], rax
jmp 0x18001d422
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x39]
call fcn.180002020
nop
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001d43a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbx, qword [rbp - 0x41]
call fcn.18001aca0
test al, al
je 0x18001d573
mov r8b, 1
mov rdx, r15
lea rcx, [rbp + 0x17]
call fcn.18001c0c0
nop
mov r8, rax
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x19]
call fcn.180001b80
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x18001d4be
cmp dword [rbx + 0x10], 0
jl 0x18001d4b0
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x18001d4b0
call fcn.180002110
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x18001d4a6
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rVariantCopy + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x41], rax
jmp 0x18001d4be
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x41]
call fcn.180002020
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001d4d7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp + 0x17]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001d4ef
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbx, qword [rbp - 0x41]
lea rcx, [rbx - 0x18]
call fcn.180002110
add rax, 0x18
mov qword [rbp + 7], rax
mov r8b, 1
mov rdx, 0xffffffff80000001
lea rcx, [rbp + 7]
call fcn.18001bc60
mov dword [rbp + 0x77], r13d
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18001d573
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 1]
call fcn.18001c0c0
nop
mov r8, rax
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x11]
call fcn.180001b80
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x18001d5e6
cmp dword [rbx + 0x10], 0
jl 0x18001d5d8
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x18001d5d8
call fcn.180002110
mov rdi, rax
lock add dword [rbx + 0x10], 0xffffffff
jg 0x18001d5ce
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rVariantCopy + 8]
lea rax, [rdi + 0x18]
mov qword [rbp - 0x41], rax
jmp 0x18001d5e6
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x41]
call fcn.180002020
nop
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001d5ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov rdx, qword [rbp - 1]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001d617
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
mov rbx, qword [rbp - 0x41]
lea rdi, [rbx - 0x18]
mov rcx, rdi
call fcn.180002110
add rax, 0x18
mov qword [rbp + 0xf], rax
mov r8b, 1
mov rdx, 0xffffffff80000001
lea rcx, [rbp + 0xf]
call fcn.18001bc60
mov r8d, dword [0x180069c80]
lea ecx, [r8 + 1]
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
cmp ecx, 7
jne 0x18001d6ac
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, 0x2f4
movsxd rcx, r8d
mov eax, 4
mul rcx
cmovo rax, rsi
mov rcx, rax
call fcn.1800289f0
mov rcx, rax
call fcn.180028a24
mov dword [rbp - 0x31], r13d
lea rax, [rbp - 0x21]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x18001d6da
xor bl, bl
jmp 0x18001d713
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [r12]
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ebx, eax
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
sete bl
mov rdx, qword [rbp - 0x39]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001d72c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + VariantCopy]
nop
mov eax, esi
lock xadd dword [rdi + 0x10], eax
dec eax
jg 0x18001d744
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + VariantCopy]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x18001d75c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rVariantCopy + 8]
movzx eax, bl
lea r11, [rsp + 0xa0]
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