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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x5a05c4]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0x30], eax
push 0
push ebx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
je 0x456ac2
mov eax, ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
or eax, 8
push ecx
push eax
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x456ac9
xor esi, esi
cmp eax, 2
je 0x456cbf
mov esi, eax
jmp 0x456cbf
xor esi, esi
jmp 0x456cbf
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
push edi
call fcn.00542114
add esp, 4
cmp eax, 0x7ffffff0
jae 0x456cd4
mov ebx, eax
cmp eax, 5
jae 0x456b0e
lea esi, [esp + 0x20]
test ebx, ebx
mov byte [esp + 0x2b], bl
mov dword [esp + 4], esi
jne 0x456b45
jmp 0x456b54
lea edi, [ebx + 8]
and edi, 0xfffffff8
js 0x456cdd
lea eax, [edi + edi]
push eax
call fcn.00527256
add esp, 4
or edi, 0x80000000
mov dword [esp + 0x20], eax
mov esi, eax
lea eax, [esp + 0x20]
mov dword [esp + 0x28], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x24], ebx
mov dword [esp + 4], eax
mov eax, ebx
add eax, ebx
push eax
push edi
push esi
call fcn.0052acc0
add esp, 0xc
mov eax, dword [esp + 4]
mov word [esi + ebx*2], 0
mov ecx, dword [esp + 0x24]
mov al, byte [eax + 0xb]
movzx esi, al
test al, al
mov edx, esi
cmovs edx, ecx
test edx, edx
je 0x456baa
lea edi, [esp + 0x20]
test al, al
mov dword [esp + 8], edi
jns 0x456b83
mov edi, dword [esp + 0x20]
cmp word [edi + edx*2 - 2], 0x5c
je 0x456bb2
lea ecx, [esp + 0x20]
mov dword [esp + 8], ecx
push 0x5c
call fcn.00427ee4
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov al, byte [eax + 0xb]
movzx esi, al
jmp 0x456bb2
lea edx, [esp + 0x20]
mov dword [esp + 8], edx
test al, al
lea edi, [esp + 0x10]
lea ebx, [esp + 0x20]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
cmovs esi, ecx
jmp 0x456bf7
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00456a60
add esp, 0xc
test eax, eax
jne 0x456c79
mov dword [esp + 0xc], 0x104
push 0x104
push edi
call fcn.00447f50
add esp, 8
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push 0
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x456c79
mov ecx, edi
push 0
push dword [esp + 0x10]
call fcn.0042795c
mov ecx, ebx
push 0
push esi
call fcn.0042795c
movzx eax, byte [esp + 0x1b]
mov edx, edi
test al, al
jns 0x456c55
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push eax
push edx
call fcn.00427c14
mov eax, dword [esp + 4]
cmp byte [eax + 0xb], 0
mov eax, dword [esp + 8]
jns 0x456be0
mov eax, dword [esp + 0x20]
jmp 0x456be0
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
cmp byte [esp + 0x1b], 0
mov esi, eax
jns 0x456ca9
push dword [esp + 0x10]
call fcn.005272d6
add esp, 4
mov eax, dword [esp + 4]
cmp byte [eax + 0xb], 0
jns 0x456cbf
push dword [esp + 0x20]
call fcn.005272d6
add esp, 4
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.00527311
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x20]
call fcn.00426c4c
call fcn.0053b598
int3