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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x535a40]
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 0x4519af
cmp dword [esi], eax
je 0x4519a4
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.0x45180c
jmp dword [edi*4 + 0x451afc]
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.0x45180c
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.0x45180c
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.0x45180c
mov eax, dword [esi]
mov esi, dword [esi - 0xc]
movzx eax, word [eax]
cmp edi, 3
jne 0x4518b7
push dword [0x53a8bc]
cwde
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, 0xffff8001
jge 0x4518a3
mov eax, 0xffff8001
jmp 0x4518b4
cmp eax, 0x7fff
jle 0x4518b1
mov eax, 0x7fff
jmp 0x4518b4
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.0x45180c
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 0x4518e0
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.0x45180c
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 0x45198c
xor esi, esi
test ebx, ebx
je 0x451980
push esi
lea eax, [ebp - 0x24]
push 0x501b2c
push eax
call fcn.0044bdd0
add esp, 0xc
lea eax, [ebp - 0x24]
cmp dword [edi], 0
je 0x45196e
push 4
push edi
push 4
push 0
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x451978
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc esi
add edi, 4
cmp esi, ebx
jb 0x451941
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 0x451800
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.004c34b7
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 0x45198c
xor esi, esi
test ebx, ebx
je 0x451ada
cmp edi, 7
mov edi, dword [ebp - 0x34]
jne 0x451a86
push esi
lea eax, [ebp - 0x24]
push 0x501b2c
push eax
call fcn.0044bdd0
movzx eax, word [edi + esi*2]
add esp, 0xc
test ax, ax
je 0x451a6c
push dword [0x53a8bc]
cwde
push 0x60
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
cmp eax, 0xffff8001
jge 0x451a3e
mov eax, 0xffff8001
jmp 0x451a4f
cmp eax, 0x7fff
jle 0x451a4c
mov eax, 0x7fff
jmp 0x451a4f
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 0x451a79
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc esi
cmp esi, ebx
jb 0x451a05
push dword [ebp - 0x2c]
jmp 0x451983
xor esi, esi
nop dword [eax + eax]
push esi
lea eax, [ebp - 0x24]
push 0x501b2c
push eax
call fcn.0044bdd0
movzx eax, word [edi + esi*2]
add esp, 0xc
test ax, ax
je 0x451ac8
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 0x451ad5
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc esi
cmp esi, ebx
jb 0x451a90
push dword [ebp - 0x2c]
jmp 0x451983
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.0x45180c