Function at 0x45eee0
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, 0x30
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x5ff014]
xor eax, ebp
mov dword [esp + 0x28], eax
push 0
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
xor esi, esi
test eax, eax
jne 0x45ef25
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00504596
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
lea eax, [esp + 0x24]
mov dword [eax], esi
or edi, 8
push eax
push edi
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45ef4a
cmp eax, 2
je 0x45ef10
mov esi, eax
jmp 0x45ef10
xor eax, eax
dec eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push dword [ebp + 0xc]
call fcn.0051f544
add esp, 4
cmp eax, 0x7ffffff0
jae 0x45f112
mov ebx, eax
cmp eax, 5
jae 0x45ef83
lea edi, [esp + 0x18]
mov byte [edi + 0xb], bl
test ebx, ebx
jne 0x45efa9
jmp 0x45efba
lea esi, [ebx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
call fcn.00503d75
add esp, 4
mov edi, eax
mov dword [esp + 0x18], eax
or esi, 0x80000000
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], ebx
mov eax, ebx
add eax, ebx
push eax
push dword [ebp + 0xc]
push edi
call fcn.00507560
add esp, 0xc
mov word [edi + ebx*2], 0
mov al, byte [esp + 0x23]
test al, al
mov ecx, dword [esp + 0x1c]
movzx edx, al
mov dword [esp], edx
cmovs edx, ecx
test edx, edx
je 0x45f006
test al, al
jns 0x45efe1
mov esi, dword [esp + 0x18]
jmp 0x45efe5
lea esi, [esp + 0x18]
cmp word [esi + edx*2 - 2], 0x5c
je 0x45f006
lea esi, [esp + 0x18]
mov ecx, esi
push 0x5c
call fcn.004db4c0
mov al, byte [esi + 0xb]
mov ecx, dword [esi + 4]
movzx edx, al
mov dword [esp], edx
xor edx, edx
lea esi, [esp + 8]
mov dword [esi + 4], edx
mov dword [esi], edx
mov dword [esi + 8], edx
test al, al
mov eax, dword [esp]
cmovs eax, ecx
mov dword [esp], eax
lea esi, [esp + 0x18]
xor ebx, ebx
mov eax, 0x104
mov dword [esp + 4], eax
push eax
lea eax, [esp + 0xc]
push eax
call fcn.0045e520
add esp, 8
mov ecx, dword [esp + 0x24]
sub esp, 0x20
xorps xmm0, xmm0
movups xmmword [esp + 0x10], xmm0
lea edx, [esp + 0x24]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [esp + 4], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x45f0c6
lea edi, [esp + 8]
mov ecx, edi
push ebx
push dword [esp + 8]
call fcn.004db8e0
mov ecx, esi
push ebx
push dword [esp + 4]
call fcn.004db8e0
movzx eax, byte [esp + 0x13]
test al, al
jns 0x45f099
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
mov ecx, esi
push eax
push edi
call fcn.004db260
cmp byte [esp + 0x23], 0
mov eax, esi
jns 0x45f0af
mov eax, dword [esp + 0x18]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.0045eee0
add esp, 0xc
test eax, eax
je 0x45f025
push dword [esp + 0x24]
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]
mov esi, eax
cmp byte [esp + 0x13], 0
jns 0x45f0f6
push dword [esp + 8]
call fcn.00503da5
add esp, 4
cmp byte [esp + 0x23], 0
jns 0x45ef10
push dword [esp + 0x18]
call fcn.00503da5
add esp, 4
jmp 0x45ef10
lea ecx, [esp + 0x18]
call fcn.0054ed10
int3