Function at 0x4396b0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x587471
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x5eb770]
xor eax, esp
mov dword [esp + 0x440], eax
push ebx
push esi
push edi
mov eax, dword [0x5eb770]
xor eax, esp
push eax
lea eax, [esp + 0x458]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [esp + 0x38], ecx
push str.CUNINSTALLERDlg::CleanUpDIAS
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x44], eax
call fcn.0044ca70
add esp, 0xc
push 0x208
lea edx, [esp + 0x40]
push ebx
mov dword [esp + 0x468], ebx
push edx
mov dword [esp + 0x20], ebx
call fcn.0055ca80
add esp, 0xc
push 0x208
lea eax, [esp + 0x248]
push ebx
push eax
call fcn.0055ca80
add esp, 0xc
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x30], ebx
call fcn.0046d2d8
mov esi, dword [eax + 4]
mov ecx, dword [esi + 0x130]
cmp byte [ecx + 0x6b], bl
jne 0x439793
push ebx
push str.return___08x
lea edx, [esp + 0x2c]
push 2
push edx
call fcn.0044cd10
add esp, 0x10
lea ecx, [esp + 0x24]
mov dword [esp + 0x460], 0xffffffff
call fcn.0044cc70
xor eax, eax
jmp 0x439a4f
push str.DIASUser
push str.SOFTWARECanonDIASSETUP
lea eax, [esp + 0x44]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push ebx
lea edx, [esp + 0x48]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x439803
push 1
push str.return___08x
lea eax, [esp + 0x2c]
push 2
push eax
call fcn.0044cd10
add esp, 0x10
lea ecx, [esp + 0x24]
mov dword [esp + 0x460], 0xffffffff
call fcn.0044cc70
mov eax, 1
jmp 0x439a4f
mov esi, dword [esi + 0xe0]
mov ecx, dword [esp + 0x14]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x50]
push eax
push ebx
push ecx
xor esi, esi
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x3c], 0x208
call edi
test eax, eax
jne 0x4398ab
jmp 0x439860
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x439870
inc ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x248]
push ecx
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x50]
push ecx
inc esi
push esi
push edx
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x3c], 0x208
call edi
test eax, eax
je 0x439860
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
ja 0x4398c4
mov ebx, 1
jmp 0x4399e0
call fcn.00461e32
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4398de
push 0x80004005
call fcn.004025a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x460], 1
call fcn.00461e32
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x439910
push 0x80004005
call fcn.004025a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x2c], esi
push 3
mov byte [esp + 0x464], 2
call fcn.00461d28
test eax, eax
je 0x439943
push 3
push eax
lea ecx, [esp + 0x34]
call fcn.004035f0
mov esi, dword [esp + 0x2c]
push 0x43
call fcn.00461d28
test eax, eax
je 0x43995a
push 0x43
push eax
lea ecx, [esp + 0x28]
call fcn.004035f0
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
push edi
push 0x34
push ecx
mov ecx, esi
call fcn.004391d0
xor ebx, ebx
cmp eax, 7
setne bl
cmp dword [0x60a334], 0
je 0x439990
test edi, edi
je 0x439990
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [esi - 0x10]
mov byte [esp + 0x460], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4399b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x460], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4399dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebx, ebx
je 0x439a24
call fcn.00415fe0
push str.DIASUser
push str.SOFTWARECanonDIASSETUP
lea ecx, [esp + 0x44]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [esp + 0x14]
push edx
push 0x2001f
push 0
lea eax, [esp + 0x48]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x439a24
xor ebx, ebx
push ebx
push str.return___08x
lea ecx, [esp + 0x2c]
push 2
push ecx
call fcn.0044cd10
add esp, 0x10
lea ecx, [esp + 0x24]
mov dword [esp + 0x460], 0xffffffff
call fcn.0044cc70
mov eax, ebx
mov ecx, dword [esp + 0x458]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x440]
xor ecx, esp
call fcn.0055649d
mov esp, ebp
pop ebp
ret 4