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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x418550]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x120], ebx
cmp esi, ebx
je 0x402e1b
push 0x4138fc
push eax
call fcn.00401030
pop ecx
pop ecx
test eax, eax
jne 0x402e1b
lea eax, [ebp - 0x120]
push eax
push 0x413650
push 1
push ebx
push 0x41391c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x402e0b
mov eax, esi
mov dword [ebp - 0x118], eax
cmp dword [esi], ebx
jne 0x402b92
cmp dword [ebp + 0x10], ebx
jne 0x402e0b
push 0x40
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x11c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x104]
push eax
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x118]
push eax
call fcn.0040107a
add esp, 0xc
test eax, eax
js 0x402e0b
mov esi, dword [ebp - 0x118]
cmp esi, 0x400
jg 0x402c16
push esi
call fcn.00401d06
pop ecx
test al, al
je 0x402c16
mov eax, esi
call fcn.00408c00
mov eax, esp
jmp 0x402c22
mov eax, dword [ebp - 0x118]
mov esi, dword [eax + 4]
lea edi, [ebp - 0x114]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x114]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp - 0x11c]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x10], ebx
je 0x402be6
cmp dword [eax], 1
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
push eax
jne 0x402bc6
call dword [ecx + 0x14]
jmp 0x402bc9
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x402bfc
mov eax, dword [ebp - 0x120]
cmp eax, ebx
je 0x402bdf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x402e1d
cmp dword [eax], 1
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
push eax
jne 0x402bf9
call dword [ecx + 0x18]
jmp 0x402bfc
call dword [ecx + 0x20]
add dword [ebp - 0x118], 8
mov eax, dword [ebp - 0x118]
cmp dword [eax], ebx
jne 0x402b8c
jmp 0x402b0b
push esi
lea ecx, [ebp - 0x11c]
call fcn.004021c5
push 3
push esi
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.00401160
mov dword [ebp - 0x130], eax
cmp eax, ebx
je 0x402dea
push str.CLSID_
mov esi, 0x80
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.0040862b
push eax
call fcn.004011dc
push dword [ebp - 0x130]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00408757
push eax
call fcn.004011dc
push str.Required_Categories
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00408757
push eax
call fcn.004011dc
add esp, 0x30
push 0x20019
lea eax, [ebp - 0x84]
mov edi, SysReAllocString
push eax
push edi
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x118], ebx
call fcn.004015d6
test eax, eax
jne 0x402d28
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x134], eax
call fcn.0040155f
cmp dword [ebp - 0x134], ebx
jne 0x402d28
cmp dword [ebp - 0x118], ebx
jne 0x402d28
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.CLSID_
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.0040862b
push eax
call fcn.004011dc
push dword [ebp - 0x130]
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00408757
push eax
call fcn.004011dc
push str.Implemented_Categories
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00408757
push eax
call fcn.004011dc
add esp, 0x30
push 0x20019
lea eax, [ebp - 0x84]
push eax
push edi
lea ecx, [ebp - 0x12c]
call fcn.004015d6
test eax, eax
jne 0x402dd4
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x12c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x12c]
mov esi, eax
call fcn.0040155f
cmp esi, ebx
jne 0x402dd4
cmp dword [ebp - 0x118], ebx
jne 0x402dd4
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x12c]
call fcn.0040155f
lea ecx, [ebp - 0x140]
call fcn.0040155f
cmp dword [ebp - 0x11c], ebx
je 0x402e0b
mov eax, dword [ebp - 0x11c]
mov esi, dword [eax]
push eax
mov dword [ebp - 0x11c], esi
call fcn.00408530
pop ecx
cmp esi, ebx
jne 0x402df2
mov eax, dword [ebp - 0x120]
cmp eax, ebx
je 0x402e1b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x14c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004088ca
leave
ret 0xc