Function at 0x1800451a0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x143f0]
mov eax, 0x144f0
call fcn.180050fd0
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x14528], rbx
mov qword [rsp + 0x14530], rsi
mov qword [rsp + 0x14538], rdi
mov rax, qword [0x180143158]
xor rax, rsp
mov qword [rbp + 0x143e0], rax
mov r12, rcx
mov qword [rsp + 0x78], rcx
xor r13d, r13d
mov dword [rsp + 0x6c], r13d
call fcn.1800121e0
mov rcx, rax
test rax, rax
je 0x1800457f7
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, [0x1800fb948]
lea rdi, [r13 - 1]
cmp rdx, 0x10000
jae 0x180045243
movzx edx, dx
lea rcx, [rsp + 0x48]
call fcn.180012a10
jmp 0x18004525e
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x180045246
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.180013c30
nop
mov qword [rsp + 0x60], r13
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SOFTWAREComMaster
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18004576f
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x180045784
xor edx, edx
mov r8d, 0x14002
lea rcx, [rbp + 0x3d0]
call fcn.18009b770
mov dword [rsp + 0x68], 0x14000
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 0xffff
lea r8, str.vipinfo
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x18004576f
mov qword [rbp - 0x68], r13
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r13w
mov dword [rsp + 0x6c], 2
mov qword [rsp + 0x50], r13
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SOFTWAREComMaster
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r15d, 1
test eax, eax
jne 0x180045451
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x180045466
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.18009b770
mov dword [rsp + 0x70], 0x208
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
mov r9d, 0xffff
lea r8, str.local_m2
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1800453c8
lea rax, [rbp - 0x50]
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1800453b0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.18000f600
cmp qword [rbp - 0x68], 0
jne 0x180045451
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call fcn.18009b770
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.18007d640
lea rax, [rbp + 0x1c0]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x180045402
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x78]
call fcn.18000f600
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rcx, qword [rbp - 0x78]
mov eax, dword [rbp - 0x68]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, r15d
xor r8d, r8d
lea rdx, str.local_m2
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x180045466
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r13
lea rbx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rbx, qword [rbp - 0x78]
call fcn.1800121e0
mov rcx, rax
test rax, rax
je 0x180045802
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
test rbx, rbx
je 0x1800454c0
cmp rbx, 0x10000
jae 0x1800454b1
movzx edx, bx
lea rcx, [rsp + 0x58]
call fcn.180012a10
jmp 0x1800454d4
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1800454b4
jmp 0x1800454c3
mov eax, r13d
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.180013c30
nop
call fcn.1800121e0
mov rcx, rax
test rax, rax
je 0x18004580d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 0x3d0]
cmp rcx, 0x10000
jae 0x18004551d
lea rax, [rbp + 0x3d0]
movzx edx, ax
lea rcx, [rsp + 0x40]
call fcn.180012a10
jmp 0x180045664
lea rcx, [rbp + 0x3d0]
mov rbx, rdi
nop word [rax + rax]
inc rbx
cmp word [rcx + rbx*2], 0
jne 0x180045530
test ebx, ebx
jne 0x18004559d
lea rdx, [rax - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x180045664
cmp dword [rdx + 0x10], 0
jge 0x180045571
cmp dword [rax - 0xc], 0
jl 0x180045818
mov dword [rax - 0x10], r13d
mov rax, qword [rsp + 0x40]
mov word [rax], r13w
jmp 0x180045664
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180045586
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
jmp 0x180045664
mov r14d, dword [rax - 0x10]
lea rsi, [rbp + 0x3d0]
sub rsi, rax
sar rsi, 1
test ebx, ebx
js 0x180045823
sub r15d, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, ebx
or ecx, r15d
jge 0x1800455d5
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.180012ba0
mov rax, qword [rsp + 0x40]
movsxd rcx, ebx
cmp rsi, r14
ja 0x18004562c
lea rdx, [rax + rsi*2]
lea rsi, [rcx + rcx]
test rsi, rsi
je 0x18004564e
test rdx, rdx
jne 0x180045601
call fcn.18009e9ac
mov dword [rax], 0x16
call fcn.18009e85c
jmp 0x180045649
movsxd rcx, dword [rax - 0xc]
add rcx, rcx
cmp rcx, rsi
jae 0x18004561f
call fcn.18009e9ac
mov dword [rax], 0x22
call fcn.18009e85c
jmp 0x180045649
mov r8, rsi
mov rcx, rax
call fcn.18009b300
jmp 0x180045649
lea rsi, [rcx + rcx]
movsxd rdx, dword [rax - 0xc]
add rdx, rdx
mov r9, rsi
lea r8, [rbp + 0x3d0]
mov rcx, rax
call fcn.180012cf0
mov rax, qword [rsp + 0x40]
cmp ebx, dword [rax - 0xc]
jg 0x1800457ec
mov dword [rax - 0x10], ebx
mov rax, qword [rsp + 0x40]
mov word [rsi + rax], r13w
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.180082540
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x48]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1800456d6
cmp dword [rbx + 0x10], 0
jl 0x1800456c7
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1800456c7
call fcn.180013800
mov rsi, rax
mov eax, edi
lock xadd dword [rbx + 0x10], eax
sub eax, 1
jg 0x1800456bc
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x48], rax
jmp 0x1800456d6
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.180013c30
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1800456f5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180045714
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180045733
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x18004576f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004576a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800457e6
call fcn.180050b00
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180045784
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r13
mov r8d, 0xfde9
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
mov rcx, r12
call fcn.180082f80
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1800457b3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, r12
mov rcx, qword [rbp + 0x143e0]
xor rcx, rsp
call fcn.180050f90
lea r11, [rsp + 0x144f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.18009e87c
nop
mov ecx, 0x80070057
call fcn.180010a30
nop
mov ecx, 0x80004005
call fcn.180010a30
nop
mov ecx, 0x80004005
call fcn.180010a30
nop
mov ecx, 0x80004005
call fcn.180010a30
nop
mov ecx, 0x80070057
call fcn.180010a30
int3
mov ecx, 0x80070057
call fcn.180010a30
int3