Function at 0x456f80
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 [0x52efc0]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0x30], eax
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x456ff9
push 0
push ebx
push edi
push esi
call eax
test eax, eax
je 0x457005
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 0x45700c
xor esi, esi
cmp eax, 2
je 0x457224
mov esi, eax
jmp 0x457224
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x456fc6
xor esi, esi
jmp 0x457224
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
push edi
call fcn.004cf81e
add esp, 4
cmp eax, 0x7ffffff0
jae 0x457239
mov ebx, eax
cmp eax, 5
jae 0x457051
lea esi, [esp + 0x20]
test ebx, ebx
mov byte [esp + 0x2b], bl
mov dword [esp + 4], esi
jne 0x457088
jmp 0x457097
lea edi, [ebx + 8]
and edi, 0xfffffff8
js 0x457242
lea eax, [edi + edi]
push eax
call fcn.004aea96
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.004b76d0
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 0x4570ed
lea edi, [esp + 0x20]
test al, al
mov dword [esp + 8], edi
jns 0x4570c6
mov edi, dword [esp + 0x20]
cmp word [edi + edx*2 - 2], 0x5c
je 0x4570f5
lea ecx, [esp + 0x20]
mov dword [esp + 8], ecx
push 0x5c
call fcn.004289e4
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov al, byte [eax + 0xb]
movzx esi, al
jmp 0x4570f5
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 0x457137
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.00456f80
add esp, 0xc
test eax, eax
jne 0x4571b9
mov dword [esp + 0xc], 0x104
push 0x104
push edi
call fcn.004471a0
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 0x4571b9
mov ecx, edi
push 0
push dword [esp + 0x10]
call fcn.0042845a
mov ecx, ebx
push 0
push esi
call fcn.0042845a
movzx eax, byte [esp + 0x1b]
mov edx, edi
test al, al
jns 0x457195
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push eax
push edx
call fcn.00428714
mov eax, dword [esp + 4]
cmp byte [eax + 0xb], 0
mov eax, dword [esp + 8]
jns 0x457120
mov eax, dword [esp + 0x20]
jmp 0x457120
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4571ed
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4571f9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp byte [esp + 0x1b], 0
mov esi, eax
jns 0x45720e
push dword [esp + 0x10]
call fcn.004aeac6
add esp, 4
mov eax, dword [esp + 4]
cmp byte [eax + 0xb], 0
jns 0x457224
push dword [esp + 0x20]
call fcn.004aeac6
add esp, 4
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.004aeb01
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x20]
call fcn.0042752c
call fcn.004c8e4e
int3