Function at 0x412f00
Capabilities:
Create process on windows
Delete file
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a79e8
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x4cc850]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 1
xor ebx, ebx
push 0x4b53e0
lea esi, [esp + 0x98]
mov dword [esp + 0x24], ecx
mov dword [esp + 0xb0], 7
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], bx
call fcn.00406d50
push ebx
push edi
or eax, 0xffffffff
mov dword [esp + 0x108], ebx
call fcn.00408330
push 1
push 0x4b53e0
mov ecx, esi
call fcn.00408260
push 0x44
lea eax, [esp + 0x48]
push ebx
push eax
call fcn.0048a580
add esp, 0xc
mov ecx, edi
mov dword [esp + 0x44], 0x44
call fcn.00450460
cmp eax, 2
jne 0x41319d
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWAREcanonPowerShot_Master_Setup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [edx + 0x68], ecx
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41319d
mov edx, dword [esp + 0x14]
mov edi, 4
push edi
lea ecx, [esp + 0x30]
push ecx
push edi
push ebx
push str.Status
push edx
mov dword [esp + 0x44], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x413021
mov eax, dword [esp + 0x14]
push eax
jmp 0x413192
mov eax, dword [esp + 0x94]
mov esi, 8
cmp dword [esp + 0xa8], esi
jae 0x41303d
lea eax, [esp + 0x94]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x48]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x413063
mov eax, dword [esp + 0x14]
push eax
jmp 0x413192
mov ecx, dword [esp + 0x34]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [esp + 0xa8], esi
mov eax, dword [esp + 0x94]
jae 0x413087
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.Status
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x48], edi
call esi
test eax, eax
je 0x4130c2
mov edx, dword [esp + 0x14]
push edx
jmp 0x413192
mov eax, dword [esp + 0x18]
sub eax, 1
je 0x41318d
sub eax, 1
mov eax, dword [esp + 0x14]
je 0x4130de
push eax
jmp 0x413192
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebx
push ebx
push str.Return_Value
push eax
mov dword [esp + 0x38], edi
call esi
test eax, eax
jne 0x41316a
cmp dword [esp + 0x28], 2
jne 0x41316a
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0xb0]
push edx
push ebx
push ebx
push str.RebootNeeded
push eax
mov dword [esp + 0x3c], 0x40
call esi
test eax, eax
jne 0x413140
push 0x4b53e4
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
setne bl
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
or byte [eax + 0x8c], bl
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004131f0
lea ecx, [esp + 0x90]
call fcn.00401a00
xor eax, eax
jmp 0x4131bc
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004131f0
lea ecx, [esp + 0x90]
call fcn.00401a00
mov eax, 3
jmp 0x4131bc
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.004131f0
cmp dword [esp + 0xa8], 8
jb 0x4131b7
mov edx, dword [esp + 0x94]
push edx
call fcn.004692b1
add esp, 4
mov eax, 2
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00483bf3
mov esp, ebp
pop ebp
ret 8