Function at 0x41073f
Capabilities:
Delete registry key

Disassembly:
push ebp
lea ebp, [esp - 0x12c]
sub esp, 0x1ac
mov eax, dword [0x459310]
xor eax, ebp
mov dword [ebp + 0x128], eax
mov eax, dword [ebp + 0x134]
push esi
mov esi, dword [ebp + 0x138]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x70], edi
jne 0x41077b
xor eax, eax
jmp 0x410998
push 0x44b3d0
push eax
call fcn.0040100a
test eax, eax
pop ecx
pop ecx
jne 0x410774
lea eax, [ebp - 0x70]
push eax
push 0x445ce8
push 1
push edi
push 0x44b730
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x4107b6
mov eax, dword [ebp - 0x70]
cmp eax, edi
je 0x410774
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x410774
cmp dword [esi], edi
push ebx
mov ebx, esi
je 0x41081b
cmp dword [ebp + 0x13c], 0
mov esi, dword [ebx + 4]
mov eax, dword [ebp - 0x70]
lea edi, [ebp - 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x68]
push edx
movsd dword es:[edi], dword [esi]
push 1
push dword [ebp - 0x6c]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push eax
je 0x410806
cmp dword [ebx], 1
jne 0x4107e9
call dword [ecx + 0x14]
jmp 0x4107ec
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x410813
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x4107ff
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x410997
cmp dword [ebx], 1
jne 0x410810
call dword [ecx + 0x18]
jmp 0x410813
call dword [ecx + 0x20]
add ebx, 8
cmp dword [ebx], 0
jne 0x4107bd
cmp dword [ebp + 0x13c], 0
jne 0x410988
push 0x40
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x4592d8]
and dword [ebp - 0x7c], 0
push str.CLSID_
mov esi, 0x80
lea eax, [ebp + 0x28]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push eax
call fcn.0040d60f
mov edi, dword [sym.imp.MSVCR80.dll_wcscat_s]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0x28]
push esi
push eax
call edi
push eax
call fcn.0040d60f
push str.Required_Categories
lea eax, [ebp + 0x28]
push esi
push eax
call edi
push eax
call fcn.0040d60f
and dword [ebp - 0x6c], 0
and dword [ebp - 0x74], 0
add esp, 0x30
push 0x20019
lea eax, [ebp + 0x28]
mov ebx, SysReAllocString
push eax
push ebx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x78], ebx
call fcn.0040d88f
test eax, eax
jne 0x4108e7
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0x74]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x80], eax
call fcn.0040d82a
cmp dword [ebp - 0x80], 0
jne 0x4108e7
cmp dword [ebp - 0x74], 0
jne 0x4108e7
lea eax, [ebp + 0x28]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.CLSID_
lea eax, [ebp + 0x28]
push esi
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
push eax
call fcn.0040d60f
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0x28]
push esi
push eax
call edi
push eax
call fcn.0040d60f
push 0x445c7c
lea eax, [ebp + 0x28]
push esi
push eax
call edi
push eax
call fcn.0040d60f
add esp, 0x30
push 0x20019
lea eax, [ebp + 0x28]
push eax
push ebx
lea ecx, [ebp - 0x6c]
call fcn.0040d88f
test eax, eax
jne 0x410970
xor esi, esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
push esi
push esi
push esi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp - 0x6c]
mov edi, eax
call fcn.0040d82a
cmp edi, esi
jne 0x410970
cmp dword [ebp - 0x74], esi
jne 0x410970
lea eax, [ebp + 0x28]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x6c]
call fcn.0040d82a
lea ecx, [ebp - 0x78]
call fcn.0040d82a
lea ecx, [ebp - 0x7c]
call fcn.0040e8ab
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x410995
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop ebx
mov ecx, dword [ebp + 0x128]
pop edi
xor ecx, ebp
pop esi
call fcn.0043bc78
add ebp, 0x12c
leave
ret 0xc