Function at 0x40cf80
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5641fc
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5b3124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x23c], ebx
push str..pdf
lea ecx, [ebp - 0x234]
call fcn.00404c40
push eax
mov edx, str.SoftwareClasses_
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x238]
call fcn.00411680
add esp, 4
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov ecx, dword [ebp - 0x234]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40d02a
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40d026
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40d026
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40d02a
mov ecx, edx
call esi
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d030
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0x587dac
push dword [ebp - 0x238]
push SysReAllocStringLen
call esi
call fcn.0040cb60
test eax, eax
je 0x40d072
mov edx, ebx
call fcn.0040ce40
test eax, eax
jne 0x40d0ce
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov esi, 0x58b670
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0050d580
push str..pdf
push dword [esi]
lea eax, [ebp - 0x218]
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
push SysReAllocStringLen
call ebx
add esi, 4
cmp esi, 0x58b680
jl 0x40d083
mov ebx, dword [ebp - 0x23c]
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d0d3
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0x587dac
push dword [ebp - 0x238]
push SysReAllocStringLen
call esi
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov byte [ebp - 4], 3
test ebx, ebx
je 0x40d131
lea eax, [ebp - 0x230]
mov edx, ebx
push eax
call fcn.00447800
add esp, 4
mov edi, 0x58b670
call fcn.00406bf0
test eax, eax
je 0x40d339
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x40d159
lock inc dword [eax + 0x14]
add eax, 8
jmp 0x40d15d
mov ecx, eax
call edx
add eax, 0x10
mov dword [ebp - 0x234], eax
push str..pdf
mov byte [ebp - 4], 4
lea eax, [ebp - 0x234]
push dword [edi]
push eax
call fcn.004155d0
mov ecx, ebx
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d185
mov esi, dword [ebp - 0x234]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push str.ProgId
push esi
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [ebp - 0x21c], 8
lea edx, [ebp - 0x230]
cmovae edx, dword [ebp - 0x230]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x23c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d1d1
sub ecx, dword [ebp - 0x23c]
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push 1
push str.Hash
push esi
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov byte [ebp - 4], 3
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d23d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40d23b
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40d23b
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40d23d
call edx
add edi, 4
cmp edi, 0x58b680
jl 0x40d136
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x40d2b2
mov ecx, dword [ebp - 0x230]
inc eax
cmp eax, 0x7fffffff
jbe 0x40d26e
call fcn.00517e01
add eax, eax
cmp eax, 0x1000
jb 0x40d2a9
test byte [ebp - 0x230], 0x1f
je 0x40d285
call fcn.00517e01
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40d291
call fcn.00517e01
sub ecx, eax
cmp ecx, 4
jae 0x40d29d
call fcn.00517e01
cmp ecx, 0x23
jbe 0x40d2a7
call fcn.00517e01
mov ecx, eax
push ecx
call fcn.00508ea0
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x238]
mov word [ebp - 0x230], ax
add ecx, 0xfffffff0
mov dword [ebp - 0x21c], 7
or eax, 0xffffffff
mov dword [ebp - 0x220], 0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x40d31b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x40d317
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x40d317
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40d31b
mov ecx, edx
call esi
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 - 0x10]
xor ecx, ebp
call fcn.0050975e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00406fb0
int3