Function at 0x451ef0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x53ba20]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ecx + 4]
push 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ecx]
mov dword [ebp - 0x28], eax
push reloc.ACLUI.dll_CreateSecurityPage
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4520ff
cmp dword [esi], eax
je 0x4520f4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esi, 0xc
push edi
mov dword [ebp - 0x30], esi
nop word [eax + eax]
mov edi, dword [esi - 8]
cmp edi, 9
ja case.default.0x451f5c
jmp dword [edi*4 + 0x45224c]
mov eax, dword [esi]
push 4
mov eax, dword [eax]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x28]
push 4
push 0
push dword [esi - 0xc]
push dword [eax]
call ebx
jmp case.default.0x451f5c
mov eax, dword [esi]
push 4
movzx eax, byte [eax]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x28]
push 4
push 0
push dword [esi - 0xc]
push dword [eax]
call ebx
jmp case.default.0x451f5c
mov eax, dword [esi]
push 8
movsd xmm0, qword [eax]
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x28]
push 3
push 0
push dword [esi - 0xc]
movsd qword [ebp - 0x4c], xmm0
push dword [eax]
call ebx
jmp case.default.0x451f5c
mov eax, dword [esi]
mov esi, dword [esi - 0xc]
movzx eax, word [eax]
cmp edi, 3
jne 0x452007
push dword [0x5408ec]
cwde
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, 0xffff8001
jge 0x451ff3
mov eax, 0xffff8001
jmp 0x452004
cmp eax, 0x7fff
jle 0x452001
mov eax, 0x7fff
jmp 0x452004
movzx eax, ax
movzx eax, ax
cwde
push 4
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x28]
push 4
push 0
push esi
push dword [eax]
call ebx
mov esi, dword [ebp - 0x30]
jmp case.default.0x451f5c
mov edx, dword [esi]
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452030
sub ecx, esi
mov esi, dword [ebp - 0x30]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
mov eax, dword [ebp - 0x28]
push edx
push 1
push 0
push dword [esi - 0xc]
push dword [eax]
call ebx
jmp case.default.0x451f5c
mov ebx, dword [esi - 4]
lea eax, [ebp - 0x38]
mov edi, dword [esi]
push 0
push eax
mov eax, dword [ebp - 0x28]
push 0
push 0x20006
push 0
push 0
push 0
push dword [esi - 0xc]
shr ebx, 2
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4520dc
xor esi, esi
test ebx, ebx
je 0x4520d0
push esi
lea eax, [ebp - 0x24]
push 0x503b24
push eax
call fcn.0044c5c0
add esp, 0xc
lea eax, [ebp - 0x24]
cmp dword [edi], 0
je 0x4520be
push 4
push edi
push 4
push 0
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4520c8
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc esi
add edi, 4
cmp esi, ebx
jb 0x452091
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x30]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esi, 0x18
mov dword [ebp - 0x30], esi
cmp dword [esi - 0xc], 0
jne 0x451f50
pop edi
pop ebx
mov eax, dword [ebp - 0x28]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004c3287
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi]
mov ebx, dword [esi - 4]
push 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x28]
push 0
push 0x20006
push 0
push 0
push 0
push dword [esi - 0xc]
shr ebx, 1
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4520dc
xor esi, esi
test ebx, ebx
je 0x45222a
cmp edi, 7
mov edi, dword [ebp - 0x34]
jne 0x4521d6
push esi
lea eax, [ebp - 0x24]
push 0x503b24
push eax
call fcn.0044c5c0
movzx eax, word [edi + esi*2]
add esp, 0xc
test ax, ax
je 0x4521bc
push dword [0x5408ec]
cwde
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, 0xffff8001
jge 0x45218e
mov eax, 0xffff8001
jmp 0x45219f
cmp eax, 0x7fff
jle 0x45219c
mov eax, 0x7fff
jmp 0x45219f
movzx eax, ax
cwde
push 4
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 4
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4521c9
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc esi
cmp esi, ebx
jb 0x452155
push dword [ebp - 0x2c]
jmp 0x4520d3
xor esi, esi
nop dword [eax + eax]
push esi
lea eax, [ebp - 0x24]
push 0x503b24
push eax
call fcn.0044c5c0
movzx eax, word [edi + esi*2]
add esp, 0xc
test ax, ax
je 0x452218
cwde
push 4
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
push eax
push 4
push 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x452225
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc esi
cmp esi, ebx
jb 0x4521e0
push dword [ebp - 0x2c]
jmp 0x4520d3
push dword [esi - 4]
mov eax, dword [ebp - 0x28]
push dword [esi]
push 3
push 0
push dword [esi - 0xc]
push dword [eax]
call ebx
jmp case.default.0x451f5c