Function at 0x460870
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x550b1d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov eax, dword [esp + 0x138]
push ebx
push esi
push edi
mov esi, ecx
push eax
call fcn.005320fc
mov ecx, dword [esi + 0x5c]
mov ebx, eax
xor edx, edx
mov eax, dword [ecx + 8]
mov dword [esp + 0xc], edx
test eax, eax
jle 0x4608d1
mov ecx, dword [ecx + 4]
cmp ebx, dword [ecx]
je 0x4608c9
inc edx
add ecx, 0x14
cmp edx, eax
jl 0x4608b2
mov dword [esp + 0xc], edx
xor eax, eax
jmp 0x460bd0
test edx, edx
mov dword [esp + 0xc], edx
jge 0x4608d8
xor eax, eax
jmp 0x460bd0
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x1c]
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 4
push 0x110a
push ecx
call ebp
mov edi, eax
test edi, edi
je 0x460934
push edi
mov ecx, esi
call fcn.005320fc
cmp eax, ebx
je 0x460918
mov edx, dword [esi + 0x1c]
push edi
push 1
push 0x110a
push edx
call ebp
mov edi, eax
test edi, edi
jne 0x4608f6
jmp 0x460934
mov eax, dword [esp + 0x14c]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push edi
mov ecx, esi
call fcn.0053212a
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x1c]
push eax
push 4
push 0x110a
push ecx
call ebp
mov edi, eax
test edi, edi
je 0x460989
push edi
mov ecx, esi
call fcn.005320fc
cmp eax, ebx
je 0x46096d
mov edx, dword [esi + 0x1c]
push edi
push 1
push 0x110a
push edx
call ebp
mov edi, eax
test edi, edi
jne 0x46094b
jmp 0x460989
mov eax, dword [esp + 0x14c]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push edi
mov ecx, esi
call fcn.0053212a
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x1c]
push eax
push 4
push 0x110a
push ecx
call ebp
mov edi, eax
test edi, edi
je 0x4609de
push edi
mov ecx, esi
call fcn.005320fc
cmp eax, ebx
je 0x4609c2
mov edx, dword [esi + 0x1c]
push edi
push 1
push 0x110a
push edx
call ebp
mov edi, eax
test edi, edi
jne 0x4609a0
jmp 0x4609de
mov eax, dword [esp + 0x14c]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push edi
mov ecx, esi
call fcn.0053212a
mov ebp, dword [esp + 0x10]
mov ecx, dword [esi + 0x5c]
mov edx, dword [ecx + 4]
lea ebp, [ebp + ebp*4]
shl ebp, 2
lea ecx, [esp + 0x14]
lea eax, [edx + ebp + 4]
push eax
call fcn.00537879
mov eax, dword [0x5b5ecc]
mov dword [esp + 0x140], 0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x14c]
mov byte [esp + 0x140], 1
push ecx
lea ecx, [esp + 0x20]
call fcn.00537c8d
mov edx, dword [esp + 0x150]
lea ecx, [esp + 0x20]
push edx
call fcn.00537c8d
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x24]
push eax
call fcn.00537c8d
mov cl, byte [esp + 0x158]
mov eax, dword [esi + 0x5c]
mov byte [esp + 0x28], cl
mov dword [esp + 0x18], ebx
mov edi, dword [eax + 4]
lea edx, [esp + 0x1c]
add edi, ebp
push edx
lea ecx, [edi + 4]
mov dword [edi], ebx
call fcn.00537c3d
lea eax, [esp + 0x20]
lea ecx, [edi + 8]
push eax
call fcn.00537c3d
lea ecx, [esp + 0x24]
push ecx
lea ecx, [edi + 0xc]
call fcn.00537c3d
mov dl, byte [esp + 0x28]
mov eax, dword [esp + 0x14c]
mov byte [edi + 0x10], dl
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.0051c942
add esp, 8
test eax, eax
pop ebp
je 0x460b7f
lea edx, [esp + 0x28]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push str.SoftwareDownloadManagerFoldersTree
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x460b64
lea ecx, [esp + 0x2c]
call fcn.00459300
push 1
push str.Cannot_open__create__registry_key_during_CIDMMainDlgTree::OnEditItem__._r_n
lea ecx, [esp + 0x34]
mov byte [esp + 0x144], 2
call fcn.004593e0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 1
call fcn.004593d0
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 4
call fcn.00537b04
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 3
call fcn.00537b04
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0
call fcn.00537b04
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00537b04
xor eax, eax
jmp 0x460bd0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 0x5c]
call fcn.0045be00
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 6
call fcn.00537b04
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 5
call fcn.00537b04
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0
call fcn.00537b04
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], 0xffffffff
call fcn.00537b04
mov eax, ebx
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret 0x14