Function at 0x1016ca6b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push ebp
mov ebp, dword [esp + 0x128]
lea eax, [esp + 0x18]
push eax
push str.VBKeySave5
push SysReAllocString
mov dword [esp + 0x28], ebp
call ebx
test eax, eax
je 0x1016caae
xor eax, eax
jmp 0x1016cdd1
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
push ebp
push dword [esp + 0x24]
call ebx
test eax, eax
je 0x1016cad8
push dword [esp + 0x1c]
mov dword [esp + 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1016cdd0
mov esi, dword [esp + 0xc]
push edi
lea eax, [esp + 0x10]
push eax
push str.DeleteAP
push dword [esp + 0x20]
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x1016cb03
mov dword [esp + 0x10], esi
jmp 0x1016cb6e
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push 0x1014cbdc
push SysReAllocString
xor esi, esi
call ebx
test eax, eax
je 0x1016cb2c
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x1016cb64
push 0x100
lea eax, [esp + 0x2c]
push eax
push 0
jmp 0x1016cb54
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
inc esi
call fcn.10169fc9
push 0x100
lea eax, [esp + 0x2c]
push eax
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x1016cb3a
push dword [esp + 0x14]
call edi
push dword [esp + 0x10]
call edi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push str.DeleteIF
push dword [esp + 0x20]
call ebx
test eax, eax
je 0x1016cb88
mov dword [esp + 0x10], esi
jmp 0x1016cbf3
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push str.Interface
push SysReAllocString
xor esi, esi
call ebx
test eax, eax
je 0x1016cbb1
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x1016cbe9
push 0x100
lea eax, [esp + 0x2c]
push eax
push 0
jmp 0x1016cbd9
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
inc esi
call fcn.10169fc9
push 0x100
lea eax, [esp + 0x2c]
push eax
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x1016cbbf
push dword [esp + 0x14]
call edi
push dword [esp + 0x10]
call edi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push str.DeleteCL
push dword [esp + 0x20]
call ebx
test eax, eax
je 0x1016cc0d
mov dword [esp + 0x10], esi
jmp 0x1016cc78
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push str.Clsid
push SysReAllocString
xor esi, esi
call ebx
test eax, eax
je 0x1016cc36
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x1016cc6e
push 0x100
lea eax, [esp + 0x2c]
push eax
push 0
jmp 0x1016cc5e
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
inc esi
call fcn.10169fc9
push 0x100
lea eax, [esp + 0x2c]
push eax
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x1016cc44
push dword [esp + 0x14]
call edi
push dword [esp + 0x10]
call edi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push str.DeletePI
push dword [esp + 0x20]
call ebx
test eax, eax
je 0x1016cc92
mov dword [esp + 0x10], esi
jmp 0x1016ccd0
push 0x100
lea eax, [esp + 0x2c]
xor esi, esi
push eax
push esi
jmp 0x1016ccbc
lea eax, [esp + 0x28]
push eax
push SysReAllocString
inc esi
call fcn.10169fc9
push 0x100
lea eax, [esp + 0x2c]
push eax
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x1016cca1
push dword [esp + 0x10]
call edi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push str.DeleteTI
push dword [esp + 0x20]
call ebx
test eax, eax
je 0x1016ccea
mov dword [esp + 0x10], esi
jmp 0x1016cd55
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
push str.TypeLib
push SysReAllocString
xor esi, esi
call ebx
test eax, eax
je 0x1016cd13
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jmp 0x1016cd4b
push 0x100
lea eax, [esp + 0x2c]
push eax
push 0
jmp 0x1016cd3b
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
inc esi
call fcn.10169fc9
push 0x100
lea eax, [esp + 0x2c]
push eax
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x1016cd21
push dword [esp + 0x14]
call edi
push dword [esp + 0x10]
call edi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push str.Replace
push dword [esp + 0x20]
call ebx
test eax, eax
je 0x1016cd6f
mov dword [esp + 0x10], esi
jmp 0x1016cd83
push SysReAllocString
push dword [esp + 0x14]
call fcn.1016c89c
push dword [esp + 0x10]
call edi
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.10169fc9
neg eax
push 0x100
sbb ebx, ebx
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x2c]
call ebp
push dword [esp + 0x18]
mov esi, eax
call edi
push dword [esp + 0x20]
call edi
pop edi
cmp esi, 0x103
jne 0x1016cdcd
push str.VBKeySave5
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea eax, [ebx + 1]
pop esi
mov ecx, dword [esp + 0x120]
pop ebp
pop ebx
xor ecx, esp
call fcn.10001e57
add esp, 0x11c
ret 4