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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xc08]
sub rsp, 0xcf0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x180142d48]
xor rax, rsp
mov qword [rbp + 0xbe0], rax
xor r12d, r12d
mov dword [rsp + 0x6c], r12d
call fcn.180011c30
mov rcx, rax
test rax, rax
je 0x1800458eb
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, [0x1800fb8e8]
lea rdi, [r12 - 1]
cmp rdx, 0x10000
jae 0x18004533b
movzx edx, dx
lea rcx, [rsp + 0x48]
call fcn.180012460
jmp 0x180045358
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x180045340
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.180013680
nop
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SOFTWARELudashi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180045863
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x180045878
xor edx, edx
mov r8d, 0x802
lea rcx, [rbp + 0x3d0]
call fcn.18009b170
mov dword [rsp + 0x68], 0x800
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
mov r9d, 0xffff
lea r8, str.VipLevel
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x180045863
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], r12w
mov r15d, 1
mov dword [rsp + 0x6c], r15d
mov qword [rsp + 0x50], r12
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]
test eax, eax
jne 0x180045544
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x180045559
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.18009b170
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], r12
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 0x1800454bb
lea rax, [rbp - 0x50]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x1800454a3
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.18000f050
cmp qword [rbp - 0x68], 0
jne 0x180045544
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call fcn.18009b170
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
call fcn.18007d180
lea rax, [rbp + 0x1c0]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x1800454f5
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x78]
call fcn.18000f050
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 0x180045559
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r12
lea rbx, [rbp - 0x78]
cmp qword [rbp - 0x60], 8
cmovae rbx, qword [rbp - 0x78]
call fcn.180011c30
mov rcx, rax
test rax, rax
je 0x1800458f6
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x58], rax
test rbx, rbx
je 0x1800455bc
cmp rbx, 0x10000
jae 0x1800455a4
movzx edx, bx
lea rcx, [rsp + 0x58]
call fcn.180012460
jmp 0x1800455d0
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x1800455b0
jmp 0x1800455bf
mov eax, r12d
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.180013680
nop
call fcn.180011c30
mov rcx, rax
test rax, rax
je 0x180045901
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 0x3d0]
cmp rcx, 0x10000
jae 0x180045619
lea rax, [rbp + 0x3d0]
movzx edx, ax
lea rcx, [rsp + 0x40]
call fcn.180012460
jmp 0x180045757
lea rcx, [rbp + 0x3d0]
mov rbx, rdi
inc rbx
cmp word [rcx + rbx*2], 0
jne 0x180045623
test ebx, ebx
jne 0x180045690
lea rdx, [rax - 0x18]
mov rbx, qword [rdx]
cmp dword [rdx + 8], 0
je 0x180045757
cmp dword [rdx + 0x10], 0
jge 0x180045664
cmp dword [rax - 0xc], 0
jl 0x18004590c
mov dword [rax - 0x10], r12d
mov rax, qword [rsp + 0x40]
mov word [rax], r12w
jmp 0x180045757
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x180045679
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 0x180045757
mov r14d, dword [rax - 0x10]
lea rsi, [rbp + 0x3d0]
sub rsi, rax
sar rsi, 1
test ebx, ebx
js 0x180045917
sub r15d, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, ebx
or ecx, r15d
jge 0x1800456c8
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.1800125f0
mov rax, qword [rsp + 0x40]
movsxd rcx, ebx
cmp rsi, r14
ja 0x18004571f
lea rdx, [rax + rsi*2]
lea rsi, [rcx + rcx]
test rsi, rsi
je 0x180045741
test rdx, rdx
jne 0x1800456f4
call fcn.18009e3ac
mov dword [rax], 0x16
call fcn.18009e25c
jmp 0x18004573c
movsxd rcx, dword [rax - 0xc]
add rcx, rcx
cmp rcx, rsi
jae 0x180045712
call fcn.18009e3ac
mov dword [rax], 0x22
call fcn.18009e25c
jmp 0x18004573c
mov r8, rsi
mov rcx, rax
call fcn.18009ad00
jmp 0x18004573c
lea rsi, [rcx + rcx]
movsxd rdx, dword [rax - 0xc]
add rdx, rdx
mov r9, rsi
lea r8, [rbp + 0x3d0]
mov rcx, rax
call fcn.180012740
mov rax, qword [rsp + 0x40]
cmp ebx, dword [rax - 0xc]
jg 0x1800458e0
mov dword [rax - 0x10], ebx
mov rax, qword [rsp + 0x40]
mov word [rsi + rax], r12w
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.180082080
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x48]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x1800457ca
cmp dword [rbx + 0x10], 0
jl 0x1800457bb
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x1800457bb
call fcn.180013250
mov rsi, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x1800457b0
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x48], rax
jmp 0x1800457ca
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.180013680
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1800457e9
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 0x180045808
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 0x180045827
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 0x180045863
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004585e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800458da
call fcn.180050640
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180045878
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], r12
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1800a53b4
mov esi, eax
inc eax
cmp eax, 2
cmova esi, r12d
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1800458a8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
mov rcx, qword [rbp + 0xbe0]
xor rcx, rsp
call fcn.180050ad0
lea r11, [rsp + 0xcf0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.18009e27c
nop
mov ecx, 0x80070057
call fcn.180010480
nop
mov ecx, 0x80004005
call fcn.180010480
nop
mov ecx, 0x80004005
call fcn.180010480
nop
mov ecx, 0x80004005
call fcn.180010480
nop
mov ecx, 0x80070057
call fcn.180010480
int3
mov ecx, 0x80070057
call fcn.180010480
int3