Function at 0x4504d7
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x134]
sub esp, 0x1b4
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp + 0x130], eax
mov eax, dword [ebp + 0x13c]
push ebx
push esi
mov esi, dword [ebp + 0x140]
xor ebx, ebx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], ebx
cmp esi, ebx
jne 0x450513
xor eax, eax
jmp 0x4506d5
push 0x4ae060
push eax
call fcn.00433069
pop ecx
pop ecx
test eax, eax
jne 0x45050c
lea eax, [ebp - 0x68]
push eax
push 0x4acd7c
push 1
push ebx
push 0x4ae080
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x45054e
mov eax, dword [ebp - 0x68]
cmp eax, ebx
je 0x45050c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x45050c
mov eax, esi
push edi
mov dword [ebp - 0x64], eax
cmp dword [esi], ebx
jne 0x4506f1
cmp dword [ebp + 0x144], ebx
jne 0x4506c5
push 0x40
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
push str.CLSID_
mov esi, 0x80
lea eax, [ebp + 0x30]
push esi
push eax
mov dword [ebp - 0x78], ebx
call fcn.0047a20d
push eax
call fcn.0041bc8d
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x30]
push esi
push eax
call fcn.0047a34f
push eax
call fcn.0041bc8d
push str.Required_Categories
lea eax, [ebp + 0x30]
push esi
push eax
call fcn.0047a34f
push eax
call fcn.0041bc8d
add esp, 0x30
push 0x20019
lea eax, [ebp + 0x30]
mov edi, closesocket
push eax
push edi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
call fcn.004500b5
test eax, eax
jne 0x450621
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x6c], eax
call fcn.0045009a
cmp dword [ebp - 0x6c], ebx
jne 0x450621
cmp dword [ebp - 0x64], ebx
jne 0x450621
lea eax, [ebp + 0x30]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.CLSID_
lea eax, [ebp + 0x30]
push esi
push eax
call fcn.0047a20d
push eax
call fcn.0041bc8d
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x30]
push esi
push eax
call fcn.0047a34f
push eax
call fcn.0041bc8d
push str.Implemented_Categories
lea eax, [ebp + 0x30]
push esi
push eax
call fcn.0047a34f
push eax
call fcn.0041bc8d
add esp, 0x30
push 0x20019
lea eax, [ebp + 0x30]
push eax
push edi
lea ecx, [ebp - 0x74]
call fcn.004500b5
test eax, eax
jne 0x4506ad
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x64]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.0045009a
cmp esi, ebx
jne 0x4506ad
cmp dword [ebp - 0x64], ebx
jne 0x4506ad
lea eax, [ebp + 0x30]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x74]
call fcn.0045009a
lea ecx, [ebp - 0x80]
call fcn.0045009a
lea ecx, [ebp - 0x78]
call fcn.004321bd
mov eax, dword [ebp - 0x68]
cmp eax, ebx
je 0x4506d2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
mov ecx, dword [ebp + 0x130]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047654a
add ebp, 0x134
leave
ret 0xc
mov eax, dword [ebp - 0x64]
mov esi, dword [eax + 4]
lea edi, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x60]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp - 0x6c]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x144], ebx
je 0x450736
cmp dword [eax], 1
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
jne 0x45071c
call dword [ecx + 0x14]
jmp 0x45071f
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x450749
mov eax, dword [ebp - 0x68]
cmp eax, ebx
je 0x450732
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x4506d4
cmp dword [eax], 1
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push eax
jne 0x450746
call dword [ecx + 0x18]
jmp 0x450749
call dword [ecx + 0x20]
add dword [ebp - 0x64], 8
mov eax, dword [ebp - 0x64]
cmp dword [eax], ebx
jne 0x4506ee
jmp 0x45055c