Function at 0x4228d0
Capabilities:
Delete file
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x499480
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x4bd450]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor eax, eax
mov edi, ecx
mov dword [ebx], eax
mov dword [esp + 0x1c], ebx
cmp dword [edi], eax
je 0x42294e
cmp dword [edi + 4], eax
je 0x42294e
mov esi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.00422f40
test eax, eax
je 0x422965
cmp eax, 2
je 0x42294e
cmp eax, 0x3ee
jne 0x422965
mov eax, dword [edi]
test eax, eax
je 0x422940
call fcn.00423810
test eax, eax
jne 0x422965
mov eax, dword [edi]
add eax, 0x618
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00422ca0
test eax, eax
jne 0x422a20
mov dword [ebx], 1
mov esi, dword [edi]
call fcn.00423590
mov ebx, eax
test ebx, ebx
je 0x422b42
push 0x1a
sub esp, 0x1c
mov edx, str.installret
mov eax, esp
mov dword [esp + 0x3c], esp
call fcn.004028a0
mov dword [esp + 0x50], 0
sub esp, 0x1c
mov edx, str.installret
mov eax, esp
mov dword [esp + 0x5c], esp
call fcn.004028a0
mov byte [esp + 0x6c], 1
mov dword [esp + 0x6c], 0xffffffff
call fcn.00408160
mov eax, dword [edi]
add esp, 0x3c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x18]
push edx
add eax, 0x618
push eax
call fcn.00424f50
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x422b42
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov esi, dword [edi]
push ecx
push edx
add esi, 0x208
call fcn.00423320
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.DeleteFlag
push str.360bprot
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov edx, dword [edi]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
add edx, 0x410
push edx
call fcn.00424f50
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x422b42
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [edi]
push esi
push eax
add edx, 0x410
mov ecx, edi
call fcn.00422fa0
test eax, eax
je 0x422af3
mov ecx, dword [esp + 0x1c]
mov dword [ecx], 1
mov edx, dword [edi + 4]
test byte [edx], 1
jne 0x422ab7
mov eax, dword [edi]
test eax, eax
jne 0x422aa8
xor ebx, ebx
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00423810
mov ebx, eax
test ebx, ebx
je 0x422b42
mov eax, dword [edi]
mov ecx, dword [edi + 4]
push eax
push ecx
call fcn.00423660
mov ebx, eax
test ebx, ebx
je 0x422b42
mov edx, dword [esp + 0x14]
push esi
mov esi, dword [edi]
push edx
add esi, 0x208
call fcn.00423320
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [edi]
call fcn.00423590
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x422b42
mov edx, dword [edi]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
add edx, 0x618
push edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.00424f50
mov ebx, eax
add esp, 0xc
cmp ebx, esi
je 0x422b42
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov esi, dword [edi]
push eax
push ecx
add esi, 0x208
call fcn.00423320
mov eax, ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4