Function at 0x466010
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x55ba1d
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.0053c7b9
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 0x466071
mov ecx, dword [ecx + 4]
cmp ebx, dword [ecx]
je 0x466069
inc edx
add ecx, 0x14
cmp edx, eax
jl 0x466052
mov dword [esp + 0xc], edx
xor eax, eax
jmp 0x466370
test edx, edx
mov dword [esp + 0xc], edx
jge 0x466078
xor eax, eax
jmp 0x466370
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 0x4660d4
push edi
mov ecx, esi
call fcn.0053c7b9
cmp eax, ebx
je 0x4660b8
mov edx, dword [esi + 0x1c]
push edi
push 1
push 0x110a
push edx
call ebp
mov edi, eax
test edi, edi
jne 0x466096
jmp 0x4660d4
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.0053c7e7
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 0x466129
push edi
mov ecx, esi
call fcn.0053c7b9
cmp eax, ebx
je 0x46610d
mov edx, dword [esi + 0x1c]
push edi
push 1
push 0x110a
push edx
call ebp
mov edi, eax
test edi, edi
jne 0x4660eb
jmp 0x466129
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.0053c7e7
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 0x46617e
push edi
mov ecx, esi
call fcn.0053c7b9
cmp eax, ebx
je 0x466162
mov edx, dword [esi + 0x1c]
push edi
push 1
push 0x110a
push edx
call ebp
mov edi, eax
test edi, edi
jne 0x466140
jmp 0x46617e
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.0053c7e7
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.00541f33
mov eax, dword [0x5c2a74]
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.00542347
mov edx, dword [esp + 0x150]
lea ecx, [esp + 0x20]
push edx
call fcn.00542347
mov eax, dword [esp + 0x154]
lea ecx, [esp + 0x24]
push eax
call fcn.00542347
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.005422f7
lea eax, [esp + 0x20]
lea ecx, [edi + 8]
push eax
call fcn.005422f7
lea ecx, [esp + 0x24]
push ecx
lea ecx, [edi + 0xc]
call fcn.005422f7
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.00526f6c
add esp, 8
test eax, eax
pop ebp
je 0x46631f
lea edx, [esp + 0x28]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0xf003f
push 0
push 0x5c6ff0
push 0
push str.SoftwareDownloadManagerFoldersTree
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x466304
lea ecx, [esp + 0x2c]
call fcn.0045eaa0
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.0045eb80
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 1
call fcn.0045eb70
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 4
call fcn.005421be
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 3
call fcn.005421be
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0
call fcn.005421be
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], 0xffffffff
call fcn.005421be
xor eax, eax
jmp 0x466370
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.004615a0
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 6
call fcn.005421be
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 5
call fcn.005421be
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0
call fcn.005421be
lea ecx, [esp + 0x10]
mov dword [esp + 0x13c], 0xffffffff
call fcn.005421be
mov eax, ebx
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x134
ret 0x14