Function at 0x4131f0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a6176
mov eax, dword fs:[0]
push eax
sub esp, 0x864
mov eax, dword [0x4cc850]
xor eax, esp
mov dword [esp + 0x860], eax
push ebp
push esi
push edi
mov eax, dword [0x4cc850]
xor eax, esp
push eax
lea eax, [esp + 0x874]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
push 0xf003f
xor edi, edi
push edi
push str.SOFTWAREcanonPowerShot_Master_Setup
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x413275
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.Status
push ecx
call esi
cmp eax, edi
je 0x41327c
cmp eax, 2
je 0x41327c
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4134b3
mov eax, dword [esp + 0x10]
push str.Return_Value
push eax
call esi
cmp eax, edi
je 0x4132a3
cmp eax, 2
je 0x4132a3
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4134b3
mov edx, dword [esp + 0x10]
push str.RebootNeeded
push edx
call esi
cmp eax, edi
je 0x4132ca
cmp eax, 2
je 0x4132ca
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x4134b3
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebp
push 0x104
lea edx, [esp + 0x66c]
push edx
push 0x104
lea eax, [esp + 0x264]
push eax
push 0x104
lea ecx, [esp + 0x64]
push ecx
push 0x104
lea edx, [esp + 0x47c]
push edx
push str.SOFTWAREcanonPowerShot_Master_Setup
call fcn.00484f2c
lea eax, [esp + 0x484]
add esp, 0x24
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], edi
mov word [esp + 0x38], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x413330
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x464]
push eax
lea esi, [esp + 0x3c]
call fcn.00406d50
lea eax, [esp + 0x50]
mov dword [esp + 0x87c], edi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x413360
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x3c]
call fcn.00408260
lea eax, [esp + 0x258]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4133a0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x25c]
push edx
lea esi, [esp + 0x20]
call fcn.00406d50
lea eax, [esp + 0x668]
mov byte [esp + 0x87c], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4133d3
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x66c]
push eax
lea ecx, [esp + 0x20]
call fcn.00408260
mov eax, dword [esp + 0x38]
mov esi, 8
cmp dword [esp + 0x4c], esi
jae 0x413407
lea eax, [esp + 0x38]
lea ecx, [esp + 0x14]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41345d
cmp dword [esp + 0x30], esi
jb 0x413435
mov edx, dword [esp + 0x1c]
push edx
call fcn.004692b1
add esp, 4
cmp dword [esp + 0x4c], esi
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], di
jb 0x413459
mov eax, dword [esp + 0x38]
push eax
call fcn.004692b1
add esp, 4
xor al, al
jmp 0x4134b3
cmp dword [esp + 0x30], esi
mov eax, dword [esp + 0x1c]
jae 0x41346b
lea eax, [esp + 0x1c]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
test eax, eax
je 0x413498
mov edx, dword [esp + 0x14]
push edx
call ebp
lea ecx, [esp + 0x18]
call fcn.00401a00
lea ecx, [esp + 0x34]
call fcn.00401a00
xor al, al
jmp 0x4134b3
mov eax, dword [esp + 0x14]
push eax
call ebp
lea ecx, [esp + 0x18]
call fcn.00401a00
lea ecx, [esp + 0x34]
call fcn.00401a00
mov al, 1
mov ecx, dword [esp + 0x874]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x860]
xor ecx, esp
call fcn.00483bf3
add esp, 0x870
ret