Function at 0x1006624
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
lea eax, [ebp - 8]
push eax
push 0xf003f
push edi
push 0x10023f8
push 0x80000002
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1006699
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x10068d4
test byte [ecx + 0x1c], 4
je 0x10068d4
push eax
push 0x1002040
push 0xf9
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
jmp 0x10068d4
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10068d4
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x10066f3
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10068d4
test byte [eax + 0x1c], 4
je 0x10068d4
push 0x1002040
push 0xfa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
jmp 0x10068d4
push ebx
push esi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01011bcc
pop ecx
mov dword [ebp - 0xc], eax
mov ebx, 0x1002040
cmp eax, edi
jne 0x100674d
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x100686a
test byte [eax + 0x1c], 1
je 0x100686a
mov ecx, dword [ebp - 4]
shl ecx, 2
push ecx
push ebx
push 0xfb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x100686a
cmp dword [ebp - 4], edi
jbe 0x100686a
push 0x20
pop esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x18], esi
neg ecx
or ecx, eax
push ecx
call fcn.01011bcc
pop ecx
mov ecx, dword [ebp - 0xc]
lea esi, [ecx + edi*4]
mov dword [esi], eax
test eax, eax
je 0x1006817
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x10], 8
push dword [esi]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1006842
cmp dword [ebp - 0x14], 0xb
je 0x10067ea
cmp dword [ebp - 0x10], 8
jne 0x10067ea
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x100680b
test byte [eax + 0x1c], 2
je 0x100680b
push dword [esi]
push dword [ebp - 0x14]
push ebx
push 0xfe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100503a
jmp 0x100680b
mov ecx, dword [ebp - 0x1c]
cmp dword [ebp + 0xc], ecx
jb 0x1006800
mov eax, dword [ebp - 0x20]
ja 0x10067fc
cmp dword [ebp + 8], eax
jb 0x1006800
or eax, ecx
jne 0x100680b
push dword [esi]
call fcn.01011bdc
and dword [esi], 0
pop ecx
inc edi
cmp edi, dword [ebp - 4]
jb 0x1006756
jmp 0x1006868
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1006868
test byte [eax + 0x1c], 1
je 0x1006868
mov ecx, dword [ebp - 0x18]
add ecx, ecx
push ecx
push ebx
push 0xfc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x1006868
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1006868
test byte [ecx + 0x1c], 1
je 0x1006868
push eax
push ebx
push 0xfd
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
xor edi, edi
cmp dword [ebp - 0xc], edi
je 0x10068d2
cmp dword [ebp - 4], edi
jbe 0x10068c9
mov eax, dword [ebp - 0xc]
lea esi, [eax + edi*4]
mov eax, dword [esi]
test eax, eax
je 0x10068c1
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10068b6
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x10068b6
test byte [ecx + 0x1c], 2
je 0x10068b6
push eax
push dword [esi]
push ebx
push 0xff
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004f4d
push dword [esi]
call fcn.01011bdc
and dword [esi], 0
pop ecx
inc edi
cmp edi, dword [ebp - 4]
jb 0x1006874
xor edi, edi
push dword [ebp - 0xc]
call fcn.01011bdc
pop ecx
pop esi
pop ebx
cmp dword [ebp - 8], edi
pop edi
je 0x10068e3
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8