Function at 0x10006485
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x12c]
sub esp, 0x1ac
mov eax, dword [0x10024ee0]
xor eax, ebp
mov dword [ebp + 0x128], eax
mov eax, dword [ebp + 0x134]
push ebx
push esi
mov esi, dword [ebp + 0x138]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x74], ebx
jne 0x100064c1
xor eax, eax
jmp 0x10006683
push 0x1001ead4
push eax
call fcn.10005399
test eax, eax
pop ecx
pop ecx
jne 0x100064ba
lea eax, [ebp - 0x74]
push eax
push 0x1001e504
push 1
push ebx
push 0x1001eab4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x100064fc
mov eax, dword [ebp - 0x74]
cmp eax, ebx
je 0x100064ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100064ba
cmp dword [esi], ebx
mov eax, esi
push edi
mov dword [ebp - 0x70], eax
jne 0x1000669f
cmp dword [ebp + 0x13c], ebx
jne 0x10006673
push 0x40
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x10024ebc]
push 0x1001e4f4
mov esi, 0x80
lea eax, [ebp + 0x28]
push esi
push eax
mov dword [ebp - 0x7c], ebx
call fcn.1000c224
push eax
call fcn.100018e2
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0x28]
push esi
push eax
call 0x1000c1aa
push eax
call fcn.100018e2
push 0x1001e4c8
lea eax, [ebp + 0x28]
push esi
push eax
call 0x1000c1aa
push eax
call fcn.100018e2
add esp, 0x30
push 0x20019
lea eax, [ebp + 0x28]
mov edi, 0x80000000
push eax
push edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x70], ebx
call fcn.10005618
test eax, eax
jne 0x100065cf
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x80], eax
call fcn.100055b3
cmp dword [ebp - 0x80], ebx
jne 0x100065cf
cmp dword [ebp - 0x70], ebx
jne 0x100065cf
lea eax, [ebp + 0x28]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x1001e4f4
lea eax, [ebp + 0x28]
push esi
push eax
call fcn.1000c224
push eax
call fcn.100018e2
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0x28]
push esi
push eax
call 0x1000c1aa
push eax
call fcn.100018e2
push 0x1001e498
lea eax, [ebp + 0x28]
push esi
push eax
call 0x1000c1aa
push eax
call fcn.100018e2
add esp, 0x30
push 0x20019
lea eax, [ebp + 0x28]
push eax
push edi
lea ecx, [ebp - 0x6c]
call fcn.10005618
test eax, eax
jne 0x1000665b
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.100055b3
cmp esi, ebx
jne 0x1000665b
cmp dword [ebp - 0x70], ebx
jne 0x1000665b
lea eax, [ebp + 0x28]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x6c]
call fcn.100055b3
lea ecx, [ebp - 0x78]
call fcn.100055b3
lea ecx, [ebp - 0x7c]
call fcn.10005b49
mov eax, dword [ebp - 0x74]
cmp eax, ebx
je 0x10006680
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x128]
pop esi
xor ecx, ebp
pop ebx
call fcn.1000b76a
add ebp, 0x12c
leave
ret 0xc
mov eax, dword [ebp - 0x70]
cmp dword [ebp + 0x13c], ebx
mov esi, dword [eax + 4]
lea edi, [ebp - 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x68]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp - 0x6c]
movsd dword es:[edi], dword [esi]
je 0x100066e4
cmp dword [eax], 1
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
jne 0x100066ca
call dword [ecx + 0x14]
jmp 0x100066cd
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x100066f7
mov eax, dword [ebp - 0x74]
cmp eax, ebx
je 0x100066e0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x10006682
cmp dword [eax], 1
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
jne 0x100066f4
call dword [ecx + 0x18]
jmp 0x100066f7
call dword [ecx + 0x20]
add dword [ebp - 0x70], 8
mov eax, dword [ebp - 0x70]
cmp dword [eax], ebx
jne 0x1000669c
jmp 0x1000650a