Function at 0x420c60
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5784c8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x5daf20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
test ebx, ebx
jne 0x420ca2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00427841
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x420cbe
push 0x80004005
call fcn.004017e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
call fcn.00427841
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x420cee
push 0x80004005
call fcn.004017e0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 1
jne 0x420e24
lea ecx, [ebp - 0x38]
call fcn.00435ac2
push 0x5b3284
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.004050a0
push ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004050a0
push ecx
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00420110
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or ebx, 0xffffffff
add esp, 8
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x420d69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x420d89
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
cmp eax, 2
jge 0x420da4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00435ad9
xor ebx, ebx
jmp 0x420ed6
lea ecx, [eax - 1]
test ecx, ecx
js 0x420e1f
cmp ecx, eax
jge 0x420e1f
mov eax, dword [ebp - 0x34]
lea eax, [eax + ecx*4]
push eax
lea ecx, [ebp - 0x20]
call fcn.004016d0
mov ecx, dword [ebp - 0x30]
xor edi, edi
lea eax, [ecx - 1]
test eax, eax
jle 0x420e0e
lea ebx, [ebx]
test edi, edi
jle 0x420de8
push 1
push 0x5b3284
lea ecx, [ebp - 0x10]
call fcn.00404c80
mov ecx, dword [ebp - 0x30]
test edi, edi
js 0x420e1f
cmp edi, ecx
jge 0x420e1f
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x10]
mov eax, dword [eax + edi*4]
push dword [eax - 0xc]
push eax
call fcn.00404c80
mov ecx, dword [ebp - 0x30]
inc edi
lea eax, [ecx - 1]
cmp edi, eax
jl 0x420dd0
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00435ad9
mov edi, dword [ebp - 0x20]
jmp 0x420e4c
call fcn.004283c4
mov ecx, ebx
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420e30
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401610
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push esi
push SysReAllocStringLen
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x420e7c
xor ebx, ebx
jmp 0x420ed6
mov eax, dword [ebp + 8]
test eax, eax
jne 0x420e8f
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x420ec2
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x420ea2
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x420ec2
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
cmp dword [ebp - 0x10], ebx
sete bl
add esi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x420ef4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x420f15
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret