Function at 0x4566f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004ab4d0
push 0xffffffffffffffff
push 0x4c8d40
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x51c080]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 0x100c]
mov esi, dword [ebp + 0x1010]
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], 0x400
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x45699c
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x456760
sub eax, edx
sar eax, 1
je 0x45699c
push ebx
push str.Delete_all_key___s_
mov ecx, 0x527b30
call fcn.00449000
add esp, 8
cmp esi, edi
jne 0x456796
mov dword [ebp - 0x1c], reloc.OLEAUT32.dll_SysReAllocString
mov esi, dword [ebp - 0x1c]
cmp byte [ebp + 0x1014], 0
jne 0x4567b2
push ebx
push esi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x4568ee
mov eax, 0xf003f
mov dword [ebp - 0x30], eax
cmp byte [ebp + 0x1014], 0
je 0x4567cb
mov eax, 0xf013f
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x4567f1
mov dword [ebp - 0x3c], eax
push 0x5042a0
lea edx, [ebp - 0x3c]
push edx
call fcn.004abd6e
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x20]
push eax
push edi
push edi
push edi
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x456821
mov dword [ebp - 0x28], eax
push 0x5042a0
lea edx, [ebp - 0x28]
push edx
call fcn.004abd6e
mov esi, dword [ebp - 0x20]
add esi, 0xffffffff
mov dword [ebp - 0x38], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test esi, esi
jl 0x45689f
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.004ab450
add esp, 0xc
mov dword [ebp - 0x24], 0x800
lea ecx, [ebp - 0x4c]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp]
push eax
push esi
mov ecx, dword [ebp - 0x18]
push ecx
call edi
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x456897
push eax
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp]
push eax
call fcn.004566f0
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x456897
mov dword [ebp - 0x34], eax
push 0x5042a0
lea ecx, [ebp - 0x34]
push ecx
call fcn.004abd6e
sub esi, 1
mov dword [ebp - 0x38], esi
jmp 0x456830
cmp byte [ebp + 0x1014], 0
je 0x4568c8
mov eax, dword [0x52c264]
test eax, eax
je 0x4568c1
push 0
push 0x100
push ebx
mov edx, dword [ebp - 0x1c]
push edx
call eax
jmp 0x4568d3
mov eax, 1
jmp 0x4568d3
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4568eb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x1c]
push 0x800
push 0
lea ecx, [ebp + 0x800]
push ecx
call fcn.004ab450
push ebx
push 0x400
lea edx, [ebp + 0x800]
push edx
call fcn.004a9ecb
add esp, 0x18
push 0x5c
lea eax, [ebp + 0x800]
push eax
call fcn.004a9ce4
add esp, 8
test eax, eax
je 0x45695f
mov word [eax], 0
mov edi, dword [ebp + 0x1014]
push edi
push esi
lea edx, [ebp + 0x800]
call fcn.00457140
add esp, 8
test al, al
je 0x45695f
push edi
push esi
lea ecx, [ebp + 0x800]
push ecx
call fcn.004566f0
add esp, 0xc
test eax, eax
je 0x456916
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x456974
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004a998e
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], eax
push 0x5042a0
lea edx, [ebp - 0x2c]
push edx
call fcn.004abd6e
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4569c8
ret