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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5105f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x572bb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 0
call fcn.00460220
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x494548
push 0x80004005
call fcn.004712d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
call fcn.004ed9c0
push eax
lea eax, [ebp - 0x20]
push str.tempo__d
push eax
call fcn.00472d30
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push 0x2001f
push 0
push 0x54efc4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x20]
or ebx, 0xffffffff
test eax, eax
jne 0x494715
push dword [esi - 0xc]
push esi
push 1
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
test eax, eax
jne 0x4945bc
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 0xd], 1
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xd], 0
je 0x494715
call fcn.00460220
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4945eb
push 0x80004005
call fcn.004712d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
push str.ProgramFiles_x86_
lea edi, [ebp - 0x14]
call fcn.00471bb0
mov ecx, edi
call fcn.0047ca10
add esp, 4
test al, al
jne 0x49462f
push ecx
mov ecx, esp
push str.ProgramFiles
call fcn.00471bb0
mov ecx, edi
call fcn.0047ca10
add esp, 4
mov edi, dword [ebp - 0x14]
mov eax, dword [edi - 0xc]
test eax, eax
je 0x4946f8
lea ecx, [eax - 1]
test ecx, ecx
js 0x494748
cmp ecx, eax
jg 0x494748
cmp word [edi + ecx*2], 0x5c
je 0x494666
push 1
push 0x54d150
lea ecx, [ebp - 0x14]
call fcn.0047a5d0
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
push esi
call fcn.0047a5d0
call fcn.00460220
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x49468e
push 0x80004005
call fcn.004712d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 1
lea edx, [ebp - 0x1c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00477910
mov edi, dword [ebp - 0x14]
neg al
mov byte [ebp - 0xe], 1
mov ebx, esp
sbb al, al
and byte [ebp - 0xd], al
lea ecx, [edi - 0x10]
call fcn.00471fb0
mov cl, byte [ebp - 0xe]
lea edx, [ebp - 0x1c]
add eax, 0x10
mov dword [ebx], eax
call fcn.00477480
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov edx, dword [ebp - 0x1c]
add esp, 4
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4946f8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x494715
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x494733
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004712d0
int3