Function at 0x40c32b
Capabilities:
Delete registry key

Disassembly:
push ebp
sub esp, 0x190
lea ebp, [esp - 4]
mov eax, dword [0x449e30]
xor eax, ebp
mov dword [ebp + 0x190], eax
push 0x18
mov eax, 0x432ea3
call fcn.004217bc
mov eax, dword [ebp + 0x19c]
mov esi, dword [ebp + 0x1a0]
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ebx
xor edi, edi
inc edi
mov dword [ebp - 4], edi
cmp esi, ebx
jne 0x40c3a0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040a4f0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.004217ad
add ebp, 0x194
leave
ret 0xc
push 0x43b318
push eax
call fcn.00402a7c
test eax, eax
pop ecx
pop ecx
jne 0x40c36d
lea eax, [ebp - 0x18]
push eax
push 0x43908c
push edi
push ebx
push 0x43b338
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x40c3db
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040a4f0
mov eax, ebx
jmp 0x40c37b
cmp dword [esi], ebx
mov eax, esi
mov dword [ebp - 0x14], eax
jne 0x40c58b
cmp dword [ebp + 0x1a4], ebx
jne 0x40c3cb
push 0x40
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x449de8]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 2
push str.CLSID_
mov esi, 0x80
lea eax, [ebp + 0x90]
push esi
push eax
call fcn.00423897
push eax
call fcn.00407841
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x90]
push esi
push eax
call fcn.004239cc
push eax
call fcn.00407841
push str.Required_Categories
lea eax, [ebp + 0x90]
push esi
push eax
call fcn.004239cc
push eax
call fcn.00407841
mov edi, closesocket
add esp, 0x30
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 4
push 0x20019
lea eax, [ebp + 0x90]
push eax
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
call fcn.00401169
test eax, eax
jne 0x40c4c4
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x24], eax
call fcn.00401104
cmp dword [ebp - 0x24], ebx
jne 0x40c4c4
cmp dword [ebp - 0x14], ebx
jne 0x40c4c4
lea eax, [ebp + 0x90]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.CLSID_
lea eax, [ebp + 0x90]
push esi
push eax
call fcn.00423897
push eax
call fcn.00407841
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x90]
push esi
push eax
call fcn.004239cc
push eax
call fcn.00407841
push 0x439020
lea eax, [ebp + 0x90]
push esi
push eax
call fcn.004239cc
push eax
call fcn.00407841
add esp, 0x30
push 0x20019
lea eax, [ebp + 0x90]
push eax
push edi
lea ecx, [ebp - 0x10]
call fcn.00401169
cmp eax, ebx
jne 0x40c55f
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.00401104
cmp esi, ebx
jne 0x40c55f
cmp dword [ebp - 0x14], ebx
jne 0x40c55f
lea eax, [ebp + 0x90]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.00401104
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00401104
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.004099aa
jmp 0x40c3cb
mov eax, dword [ebp - 0x14]
cmp dword [ebp + 0x1a4], ebx
mov esi, dword [eax + 4]
lea edi, [ebp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp - 0x10]
movsd dword es:[edi], dword [esi]
je 0x40c5c4
cmp dword [eax], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
jne 0x40c5b6
call dword [ecx + 0x14]
jmp 0x40c5b9
call dword [ecx + 0x1c]
cmp eax, ebx
jge 0x40c5d7
mov ebx, eax
jmp 0x40c3cb
cmp dword [eax], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
jne 0x40c5d4
call dword [ecx + 0x18]
jmp 0x40c5d7
call dword [ecx + 0x20]
add dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x14]
cmp dword [eax], ebx
jne 0x40c588
jmp 0x40c3e8