Function at 0x40fa70
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x518e93
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x55d3e4]
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
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004c9210
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004c9210
push str._shellexContextMenuHandlers_
lea eax, [ebp - 0x218]
push 0x520e68
push eax
call fcn.00409c80
push str._shellexDragDropHandlers_
lea eax, [ebp - 0x420]
push 0x520e68
push eax
call fcn.00409c80
add esp, 0x30
mov dword [ebp - 0x47c], 0
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x474], 0
push 1
xor eax, eax
mov dword [ebp - 4], 0
push 0x521750
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
call fcn.00407fd0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x47c]
call fcn.0040df50
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x40fb7f
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.0047f630
push 6
xor eax, eax
mov dword [ebp - 0x424], 7
push 0x521754
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
call fcn.00407fd0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x47c]
call fcn.0040df50
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x40fbe6
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.0047f630
push 9
xor eax, eax
mov dword [ebp - 0x424], 7
push str.Directory
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
call fcn.00407fd0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x47c]
call fcn.0040df50
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x40fc4d
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.0047f630
push 5
xor eax, eax
mov dword [ebp - 0x424], 7
push str.Drive
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
call fcn.00407fd0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x47c]
call fcn.0040df50
mov eax, dword [ebp - 0x424]
mov byte [ebp - 4], 0
cmp eax, 8
jb 0x40fcb4
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.0047f630
push 7
xor eax, eax
mov dword [ebp - 0x424], 7
push str.lnkfile
lea ecx, [ebp - 0x438]
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
call fcn.00407fd0
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x47c]
call fcn.0040df50
mov eax, dword [ebp - 0x424]
cmp eax, 8
jb 0x40fd17
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.0047f630
xor eax, eax
mov dword [ebp - 0x454], 7
mov dword [ebp - 0x458], 0
mov word [ebp - 0x468], ax
mov esi, dword [ebp - 0x47c]
mov byte [ebp - 4], 6
cmp esi, dword [ebp - 0x478]
je 0x40ffa5
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [esi + 0x14], 8
jb 0x40fd5a
mov edx, dword [esi]
jmp 0x40fd5c
mov edx, esi
xor eax, eax
mov dword [ebp - 0x424], 7
mov dword [ebp - 0x428], 0
mov word [ebp - 0x438], ax
cmp word [edx], ax
jne 0x40fd82
xor ecx, ecx
jmp 0x40fd96
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fd87
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x438]
call fcn.00407fd0
cmp word [ebp - 0x218], 0
mov byte [ebp - 4], 7
jne 0x40fdb5
xor ecx, ecx
jmp 0x40fdcf
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fdc0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x438]
call fcn.0040a6a0
cmp dword [esi + 0x14], 8
jb 0x40fdec
mov edx, dword [esi]
jmp 0x40fdee
mov edx, esi
xor eax, eax
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
cmp word [edx], ax
jne 0x40fe14
xor ecx, ecx
jmp 0x40fe2f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fe20
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x450]
call fcn.00407fd0
cmp word [ebp - 0x420], 0
mov byte [ebp - 4], 8
jne 0x40fe4e
xor ecx, ecx
jmp 0x40fe66
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40fe57
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x450]
call fcn.0040a6a0
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x46c]
push 0
push ecx
push 0
push 0xf013f
push 0
push 0
lea eax, [ebp - 0x438]
mov dword [ebp - 0x46c], 0
cmovae eax, dword [ebp - 0x438]
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40feda
push 0x5207b0
push dword [ebp - 0x46c]
call ebx
push dword [ebp - 0x46c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x40fee0
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x43c], 8
lea ecx, [ebp - 0x470]
push 0
push ecx
push 0
push 0xf013f
push 0
push 0
lea eax, [ebp - 0x450]
mov dword [ebp - 0x470], 0
cmovae eax, dword [ebp - 0x450]
push 0
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ff39
push 0x5207b0
push dword [ebp - 0x470]
call ebx
push dword [ebp - 0x470]
call edi
mov eax, dword [ebp - 0x43c]
cmp eax, 8
jb 0x40ff57
inc eax
lea ecx, [ebp - 0x450]
push eax
push dword [ebp - 0x450]
call fcn.0047f630
xor eax, eax
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
mov eax, dword [ebp - 0x424]
mov dword [ebp - 0x440], 0
mov byte [ebp - 4], 6
cmp eax, 8
jb 0x40ff96
inc eax
lea ecx, [ebp - 0x438]
push eax
push dword [ebp - 0x438]
call fcn.0047f630
add esi, 0x18
cmp esi, dword [ebp - 0x478]
jne 0x40fd50
lea ecx, [ebp - 0x47c]
call fcn.0040cf10
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.004974f6
mov esp, ebp
pop ebp
ret