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

Disassembly:
push 0xffffffffffffffff
push 0x45eff8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x479938]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x50]
test esi, esi
je 0x41ef4f
call fcn.0042b2d7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41ee0d
push 0x80004005
call fcn.00409280
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
mov dword [esp + 0x44], 0
call fcn.0042b2d7
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41ee3f
push 0x80004005
call fcn.00409280
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x50], edi
mov ebx, dword [esp + 0x54]
test ebx, ebx
mov byte [esp + 0x44], 1
jne 0x41eff4
lea ecx, [esp + 0x28]
call fcn.00430c0b
push 0x464bb0
lea ecx, [esp + 0x20]
mov byte [esp + 0x48], 2
call fcn.00401130
mov bl, 3
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], bl
call fcn.00401130
push 0xb
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x54], 4
call fcn.00403a70
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x10
mov byte [esp + 0x44], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eece
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x44], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41eef3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
cmp ecx, 2
jge 0x41ef65
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.00430c88
lea eax, [edi - 0x10]
mov byte [esp + 0x44], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ef2b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ef4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea eax, [ecx - 1]
test eax, eax
jl 0x41efef
cmp eax, ecx
jge 0x41efef
mov ecx, dword [esp + 0x2c]
lea eax, [ecx + eax*4]
push eax
lea ecx, [esp + 0x24]
call fcn.00402dd0
mov edx, dword [esp + 0x30]
add edx, 0xffffffff
xor esi, esi
test edx, edx
jle 0x41efd7
test esi, esi
jle 0x41efa8
push 1
push 0x464bb0
lea ecx, [esp + 0x58]
call fcn.00402eb0
test esi, esi
jl 0x41efef
cmp esi, dword [esp + 0x30]
jge 0x41efef
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x58]
call fcn.00402eb0
mov ecx, dword [esp + 0x30]
add esi, 1
add ecx, 0xffffffff
cmp esi, ecx
jl 0x41ef92
mov edi, dword [esp + 0x50]
lea ecx, [esp + 0x28]
mov byte [esp + 0x44], 1
call fcn.00430c88
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x54]
jmp 0x41f002
jmp fcn.004245cf
push esi
lea ecx, [esp + 0x54]
call fcn.0040d210
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push edi
push ecx
mov dword [esp + 0x38], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41f04b
lea eax, [edi - 0x10]
mov byte [esp + 0x44], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41ef1f
test ebx, ebx
jne 0x41f05d
mov ecx, dword [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x41f090
mov esi, dword [esp + 0x58]
test esi, esi
jne 0x41f073
mov edx, dword [esp + 0x14]
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x41f090
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
mov byte [esp + 0x44], 0
or edx, 0xffffffff
mov esi, eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f0c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f0eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret