Function at 0x14005d8b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov qword [rsp + 0x168], rbx
mov rax, qword [0x14025e510]
xor rax, rsp
mov qword [rsp + 0x100], rax
movzx ebx, r9b
mov byte [rsp + 0x30], bl
mov rax, r8
mov qword [rsp + 0xd0], rax
mov r12, rdx
mov qword [rsp + 0xa8], rdx
mov qword [rsp + 0xa0], rcx
test rdx, rdx
jne 0x14005d924
test bl, bl
je 0x14005d91d
call fcn.14000bd68
xor al, al
jmp 0x14005e10e
lea rcx, vtable.CExtRegistry.0
mov qword [rsp + 0xe0], rcx
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebp, ebp
mov r14, rbp
test eax, eax
cmove r14, qword [rsp + 0xc8]
mov qword [rsp + 0xe8], r14
test r14, r14
jne 0x14005d980
test bl, bl
je 0x14005d979
call fcn.14000bd68
nop
xor al, al
jmp 0x14005e10e
mov dword [rsp + 0x40], ebp
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.data_size
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005e0f9
cmp dword [rsp + 0x68], 4
jne 0x14005e0f9
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.data_size
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005e0f9
cmp dword [rsp + 0x40], ebp
jne 0x14005da06
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x14005e10e
mov r13d, 0x10
mov ebx, ebp
mov dword [rsp + 0x44], ebx
mov r15d, ebp
lea rax, vtable.CExtIntegrityCheckSum.0
mov qword [rsp + 0x70], rax
mov edi, ebp
mov dword [rsp + 0x78], ebp
xor eax, eax
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0x80], eax
mov dword [rsp + 0x84], eax
mov dword [rsp + 0x88], eax
call fcn.140008c24
mov r11, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
je 0x14005e0ee
or esi, 0xffffffff
nop dword [rax]
mov rax, qword [r11]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov r8d, ebx
shr r8d, 7
lea rdx, str.block_0x_08lX
lea rcx, [rsp + 0x48]
call fcn.140005d30
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.1400062b0
nop
mov rax, qword [rsp + 0x38]
mov r12d, dword [rax - 0x10]
lea ebx, [r12 + 1]
mov edx, 1
sub edx, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, ebx
or ecx, edx
jge 0x14005dac8
mov edx, ebx
lea rcx, [rsp + 0x38]
call fcn.140004ec0
mov rax, qword [rsp + 0x38]
mov edx, 0x5c
mov word [rax + r12*2], dx
test ebx, ebx
js 0x14005e0e3
mov rax, qword [rsp + 0x38]
cmp ebx, dword [rax - 0xc]
jg 0x14005e0e3
mov dword [rax - 0x10], ebx
movsxd rcx, ebx
mov rax, qword [rsp + 0x38]
mov word [rax + rcx*2], bp
mov rdx, qword [rsp + 0x48]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x38]
call fcn.140004560
lea r11, vtable.CExtRegistry.0
mov qword [rsp + 0xb0], r11
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov r12, rbp
test eax, eax
cmove r12, qword [rsp + 0xc0]
mov qword [rsp + 0xb8], r12
test r12, r12
je 0x14005e08b
call fcn.140008c24
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
je 0x14005e080
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsp + 0x90], rax
mov ebx, dword [rsp + 0x44]
mov r8d, ebx
lea rdx, str.data_0x_08lX
lea rcx, [rsp + 0x90]
call fcn.140005d30
inc ebx
mov dword [rsp + 0x44], ebx
mov eax, dword [rsp + 0x40]
sub eax, r15d
cmp eax, 0x10
cmovb r13d, eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x64]
xor r8d, r8d
mov rbx, qword [rsp + 0x90]
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005e000
cmp dword [rsp + 0x64], 3
jne 0x14005e000
cmp r13d, dword [rsp + 0x50]
jb 0x14005e000
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14005e000
add r15d, r13d
lea r9, [rsp + 0xf0]
test r13d, r13d
je 0x14005dc9a
mov r10d, r13d
nop word [rax + rax]
movsxd rdx, edi
mov r8d, dword [rsp + rdx*4 + 0x7c]
shl r8d, 4
movzx eax, byte [r9]
add r8d, eax
mov dword [rsp + rdx*4 + 0x7c], r8d
mov ecx, r8d
and ecx, 0xf0000000
je 0x14005dc81
mov eax, ecx
shr eax, 0x18
xor eax, ecx
xor eax, r8d
mov dword [rsp + rdx*4 + 0x7c], eax
mov edi, dword [rsp + 0x78]
inc edi
cmp edi, 4
cmovae edi, ebp
mov dword [rsp + 0x78], edi
inc r9
sub r10, 1
jne 0x14005dc50
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rcx]
mov r8d, r13d
lea rdx, [rsp + 0xf0]
call qword [rax + 0x70]
cmp r15d, dword [rsp + 0x40]
je 0x14005dd5e
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005dcd9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, vtable.CExtRegistry.0
mov qword [rsp + 0xb0], rax
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0xb8], rbp
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005dd19
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005dd38
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.140008c24
mov r11, rax
test rax, rax
je 0x14005e0ee
mov edi, dword [rsp + 0x78]
mov r12, qword [rsp + 0xa8]
mov ebx, dword [rsp + 0x44]
jmp 0x14005da60
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005dd79
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005dda3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005ddc2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.14005c920
nop
call fcn.140008c24
mov r11, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x14005ddf1
mov ecx, 0x80004005
call fcn.1400052e0
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x98], rbx
mov rax, qword [rsp + 0x58]
mov edi, dword [rax - 0x10]
inc edi
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14005de38
mov edx, edi
lea rcx, [rsp + 0x98]
call fcn.140004ec0
mov rbx, qword [rsp + 0x98]
mov dword [rsp + 0x20], edi
mov r9, rbx
lea r8, str.data_integrity
xor edx, edx
mov rcx, r14
call fcn.140054ca0
test al, al
jne 0x14005ded3
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14002fac8
test eax, eax
js 0x14005dec8
cmp eax, dword [rbx - 0xc]
jg 0x14005dec8
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], bp
cmp byte [rsp + 0x30], 0
je 0x14005de7f
call fcn.14000bd68
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005de9a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0x58]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14005deb8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14005e10e
mov ecx, 0x80070057
call fcn.1400052e0
int3
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14002fac8
test eax, eax
js 0x14005dff5
cmp eax, dword [rbx - 0xc]
jg 0x14005dff5
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], bp
mov ecx, ebp
mov rax, qword [rsp + 0x58]
test rax, rax
setne cl
test ecx, ecx
jne 0x14005df15
mov ecx, 0x80004005
call fcn.1400052e0
int3
mov rcx, rbx
sub rax, rbx
nop dword [rax + rax]
movzx edx, word [rcx]
cmp dx, word [rcx + rax]
jne 0x14005df34
add rcx, 2
test dx, dx
jne 0x14005df20
jmp 0x14005df39
sbb ebp, ebp
sbb ebp, 0xffffffff
test ebp, ebp
setne al
test al, al
je 0x14005df98
cmp byte [rsp + 0x30], 0
je 0x14005df4f
call fcn.14000bd68
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005df6a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0x58]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14005df88
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14005e10e
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
call qword [rax + 0x50]
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005dfc7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0x58]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14005dfe5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x14005e10e
mov ecx, 0x80070057
call fcn.1400052e0
nop
cmp byte [rsp + 0x30], 0
je 0x14005e00d
call fcn.14000bd68
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005e028
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005e052
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0x48]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14005e070
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14005e10e
mov ecx, 0x80004005
call fcn.1400052e0
int3
cmp byte [rsp + 0x30], 0
je 0x14005e098
call fcn.14000bd68
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005e0b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0x48]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14005e0d6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14005e10e
mov ecx, 0x80070057
call fcn.1400052e0
nop
mov ecx, 0x80004005
call fcn.1400052e0
nop
test bl, bl
je 0x14005e103
call fcn.14000bd68
nop
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.14002f990
mov rbx, qword [rsp + 0x168]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret