Function at 0x402a60
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x1a8
mov eax, dword [0x42f180]
push ebx
push ebp
lea ecx, [esp + 8]
mov dword [esp + 0x1ac], eax
call fcn.004023c0
mov ebx, dword [esp + 0x1b8]
xor ebp, ebp
cmp ebx, ebp
jne 0x402aac
lea ecx, [esp + 8]
call fcn.00407be0
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1a4]
call fcn.00419d15
add esp, 0x1a8
ret 0xc
mov ecx, dword [0x429a4c]
push esi
mov esi, dword [esp + 0x1b8]
mov eax, dword [esi]
cmp eax, ecx
jne 0x402b04
mov ecx, dword [esi + 4]
cmp ecx, dword [0x429a50]
jne 0x402b04
mov edx, dword [esi + 8]
cmp edx, dword [0x429a54]
jne 0x402b04
mov eax, dword [esi + 0xc]
cmp eax, dword [0x429a58]
jne 0x402b04
lea ecx, [esp + 0xc]
call fcn.00407be0
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1a4]
call fcn.00419d15
add esp, 0x1a8
ret 0xc
lea ecx, [esp + 0xc]
push ecx
push 0x4277c8
push 1
push ebp
push 0x429a3c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402ae1
cmp dword [ebx], ebp
push edi
je 0x402ba0
mov edx, dword [ebx + 4]
mov eax, dword [edx]
mov dword [esp + 0x24], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x28], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x2c], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [esp + 0x1c4]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x24]
push ecx
push 1
cmp eax, ebp
mov eax, dword [ebx]
push esi
je 0x402b82
cmp eax, 1
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
jne 0x402b69
call dword [edx + 0x14]
jmp 0x402b6c
call dword [edx + 0x1c]
mov edi, eax
cmp edi, ebp
jge 0x402b96
lea ecx, [esp + 0x10]
call fcn.00407be0
mov eax, edi
jmp 0x402d1a
cmp eax, 1
mov eax, dword [esp + 0x1c]
mov edx, dword [eax]
push eax
jne 0x402b93
call dword [edx + 0x18]
jmp 0x402b96
call dword [edx + 0x20]
mov eax, dword [ebx + 8]
add ebx, 8
cmp eax, ebp
jne 0x402b25
cmp dword [esp + 0x1c4], ebp
jne 0x402d0f
push 0x40
lea edx, [esp + 0x138]
push edx
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x42f060]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.CLSID_
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x28], ebp
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [esp + 0x134]
push ecx
lea edx, [esp + 0x38]
push edx
call esi
push str.Required_Categories
lea eax, [esp + 0x38]
push eax
call esi
push 0x20019
lea ecx, [esp + 0x38]
push ecx
push 0x80000000
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], 0x80000000
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.00401490
test eax, eax
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
jne 0x402c74
mov eax, dword [esp + 0x14]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x34]
push edx
push 0
push 0
push 0
push eax
call ebp
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00401470
test ebx, ebx
jne 0x402c74
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x402c74
lea ecx, [esp + 0x34]
push ecx
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.CLSID_
lea edx, [esp + 0x38]
push edx
call edi
lea eax, [esp + 0x134]
push eax
lea ecx, [esp + 0x38]
push ecx
call esi
push 0x42775c
lea edx, [esp + 0x38]
push edx
call esi
push 0x20019
lea eax, [esp + 0x38]
push eax
push 0x80000000
lea ecx, [esp + 0x20]
call fcn.00401490
test eax, eax
jne 0x402cf4
mov edx, dword [esp + 0x14]
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x34]
push ecx
push eax
push eax
push eax
push edx
call ebp
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.00401470
test esi, esi
jne 0x402cf4
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x402cf4
lea eax, [esp + 0x34]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [esp + 0x14]
call fcn.00401d30
lea ecx, [esp + 0x1c]
call fcn.00401d30
lea ecx, [esp + 0x20]
call fcn.00401c10
lea ecx, [esp + 0x10]
call fcn.00407be0
xor eax, eax
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
pop ebp
pop ebx
call fcn.00419d15
add esp, 0x1a8
ret 0xc