Function at 0x55d930
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ade2a
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x614040]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ecx, dword [0x61ff0c]
mov eax, 0x2aaaaaab
sub ecx, dword [0x61ff08]
mov ebx, 0x61fed0
mov edi, dword [ebp + 8]
imul ecx
mov dword [ebp - 0x23c], edi
sar edx, 2
mov eax, edx
mov dword [ebp - 0x268], ebx
shr eax, 0x1f
mov byte [ebp - 0x235], 1
add eax, edx
jne 0x55db6f
push edi
push eax
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0055e5c0
test al, al
jne 0x55d9ca
push 0x6098b4
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], 0x226
push eax
call fcn.0052d791
push 0
lea eax, [ebp - 0x258]
mov dword [ebp - 0x258], 0
push eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0x250], 0
push eax
call dword [0x61f968]
test al, al
jne 0x55da13
push 0x6098b4
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x233
push eax
call fcn.0052d791
push dword [ebp - 0x258]
mov ecx, 0x61ff08
call fcn.00405a70
xor esi, esi
mov eax, dword [ebp - 0x258]
cmp esi, eax
jae 0x55daad
mov eax, dword [ebp - 0x250]
mov edx, dword [eax + esi*4]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], 0
mov byte [ebp - 0x234], 0
cmp byte [edx], 0
jne 0x55da5c
xor ecx, ecx
jmp 0x55da6a
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55da61
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x234]
call fcn.004021d0
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
push eax
mov ecx, 0x61ff08
call fcn.004059f0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x220], 0x10
jb 0x55daa7
push dword [ebp - 0x234]
call fcn.0040d50c
add esp, 4
inc esi
jmp 0x55da25
mov ecx, dword [0x61f9d8]
test ecx, ecx
je 0x55dadf
push eax
push dword [ebp - 0x250]
call ecx
test al, al
jne 0x55dadf
push 0x6098b4
lea eax, [ebp - 0x280]
mov dword [ebp - 0x280], 0x242
push eax
call fcn.0052d791
mov edx, dword [ebx + 0x3c]
mov eax, 0x2aaaaaab
sub edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x38]
imul edx
mov byte [ebp - 0x264], 0
push dword [ebp - 0x264]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [ebx + 0x3c]
push eax
call fcn.004061d0
add esp, 8
jmp 0x55db48
mov edi, dword [ebp - 0x23c]
sub esp, 8
mov dword [ebp - 4], 0xffffffff
push 0
call fcn.0055e560
cmp byte [ebp - 0x235], 0
jne 0x55db6f
xor al, al
jmp 0x55e539
xor eax, eax
mov dword [ebp - 0x258], 0
cmp edi, 0x9fbf1
jne 0x55db88
mov eax, 1
mov ecx, dword [0x61fa68]
test ecx, ecx
jne 0x55db96
xor eax, eax
jmp 0x55dba4
push 0x2000000
push dword [eax*4 + 0x61feb8]
call ecx
push eax
mov edx, edi
lea ecx, [ebp - 0x244]
call fcn.0058d5b0
add esp, 4
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x244]
cmp dword [eax - 0xc], 0
jne 0x55e4a0
mov ecx, dword [ebx + 0x3c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx + 0x38]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
xor edx, edx
cmp edi, 0x9fbf1
jne 0x55dbf2
mov edx, 1
mov ecx, dword [0x61fa38]
test ecx, ecx
je 0x55dc0b
push eax
push 0x200ffff
push dword [edx*4 + 0x61feb8]
call ecx
mov esi, dword [ebx + 0x38]
cmp esi, dword [ebx + 0x3c]
je 0x55dc80
or ebx, 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x55dc20
mov eax, dword [esi]
jmp 0x55dc22
mov eax, esi
push eax
lea ecx, [ebp - 0x25c]
call fcn.00405600
mov byte [ebp - 4], 4
lea edx, [ebp - 0x25c]
push dword [ebp - 0x258]
mov ecx, edi
call fcn.00566170
add esp, 4
test eax, eax
je 0x55dc52
inc dword [ebp - 0x258]
mov byte [ebp - 4], 3
mov ecx, ebx
mov edx, dword [ebp - 0x25c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55dc75
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x18
cmp esi, dword [0x61ff0c]
jne 0x55dc16
call fcn.00414eab
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x55dc9c
push 0x80004005
call fcn.00402740
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x274], ebx
mov byte [ebp - 4], 5
call fcn.00414eab
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x55dcca
push 0x80004005
call fcn.00402740
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x254], esi
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 6
push eax
push 0x20019
push 0
push str.SOFTWARECanonMSETUP4LatestDevice
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x260], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call fcn.00414eab
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x55dd20
push 0x80004005
call fcn.00402740
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x250], eax
mov byte [ebp - 4], 7
call fcn.00414eab
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x55dd4e
push 0x80004005
call fcn.00402740
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x270], edi
mov byte [ebp - 4], 8
call fcn.00414eab
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x55dd7c
push 0x80004005
call fcn.00402740
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x250]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x260]
mov edx, str.MS_INSTDATE
push eax
call fcn.00589660
mov edx, dword [ebp - 0x23c]
lea ecx, [ebp - 0x264]
add esp, 4
push 0xa0010
call fcn.0058d5b0
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x264]
test eax, eax
setne cl
test ecx, ecx
jne 0x55dde0
push 0x80004005
call fcn.00402740
mov ecx, eax
mov eax, dword [ebp - 0x250]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55de0e
test dx, dx
je 0x55de0a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55de0e
add eax, 4
add ecx, 4
test dx, dx
jne 0x55dde8
xor eax, eax
jmp 0x55de13
sbb eax, eax
or eax, 1
test eax, eax
je 0x55dfba
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x274]
push eax
mov edx, str.DEVICEID
call fcn.00589660
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x24c]
add esp, 4
mov dword [ebp - 0x24c], 0
push eax
push 0x20019
push 0
push str.SOFTWARECanonMSETUP4InstalledDevice
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov ebx, dword [ebp - 0x274]
xor eax, eax
mov dword [ebp - 0x240], eax
lea ecx, [ecx]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0x100
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x55dfa8
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x248]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x24c]
call edi
call fcn.00414eab
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x55dc92
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x278], eax
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x248]
mov edx, str.DEVICENAME
push eax
call fcn.00589660
xor eax, eax
add esp, 4
test ebx, ebx
setne al
test eax, eax
je 0x55dc92
mov edi, dword [ebp - 0x278]
mov ecx, ebx
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55df49
test dx, dx
je 0x55df45
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55df49
add eax, 4
add ecx, 4
test dx, dx
jne 0x55df23
xor eax, eax
jmp 0x55df4e
sbb eax, eax
or eax, 1
test eax, eax
je 0x55e021
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0xfffffff0
mov dword [ebp - 0x248], 0
mov byte [ebp - 4], 0xa
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55df8a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x240]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
inc eax
mov dword [ebp - 0x240], eax
cmp eax, 0x400
jb 0x55de70
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x270]
push dword [ebp - 0x260]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x260], 0
cmp dword [esi - 0xc], 0
je 0x55e3d1
mov eax, dword [ebp - 0x25c]
mov ecx, 0x5e87c0
jmp 0x55dff0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55e13d
test dx, dx
je 0x55e01a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55e13d
add eax, 4
add ecx, 4
test dx, dx
jne 0x55dff0
xor eax, eax
jmp 0x55e142
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x270]
push eax
mov edx, str.MS_INSTDATE
call fcn.00589660
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x25c]
add esp, 4
mov edx, str.CATEGORY
push eax
call fcn.00589660
mov edx, dword [ebp - 0x23c]
lea ecx, [ebp - 0x240]
add esp, 4
push 0xa0011
call fcn.0058d5b0
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x240]
test esi, esi
setne al
test eax, eax
jne 0x55e08d
push 0x80004005
call fcn.00402740
mov eax, dword [ebp - 0x270]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55e0bb
test dx, dx
je 0x55e0b7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55e0bb
add eax, 4
add ecx, 4
test dx, dx
jne 0x55e095
xor eax, eax
jmp 0x55e0c0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x55e10b
add esi, 0xfffffff0
mov byte [ebp - 4], 0xb
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55e0e2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0xa
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55e100
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x254]
jmp 0x55dfa8
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x254]
push eax
mov edx, str.MS_INTERFACE
call fcn.00589660
add esp, 4
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x248], 0
jmp 0x55e0c4
sbb eax, eax
or eax, 1
test eax, eax
jne 0x55e1a6
mov ecx, 0x5e87c8
mov eax, esi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55e176
test dx, dx
je 0x55e172
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55e176
add eax, 4
add ecx, 4
test dx, dx
jne 0x55e150
xor eax, eax
jmp 0x55e17b
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x244]
push ebx
jne 0x55e196
push str.Canon__s
push eax
call fcn.00402d50
add esp, 0xc
jmp 0x55e207
push str.Canon__s_Network
push eax
call fcn.00402d50
add esp, 0xc
jmp 0x55e207
push ebx
lea eax, [ebp - 0x244]
push str.CanoScan__s
push eax
call fcn.00402d50
mov eax, dword [ebp - 0x244]
add esp, 0xc
mov ecx, str.CanoScan_9000F_II
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55e1ec
test dx, dx
je 0x55e1e8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55e1ec
add eax, 4
add ecx, 4
test dx, dx
jne 0x55e1c6
xor eax, eax
jmp 0x55e1f1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x55e207
push 0x16
push str.CanoScan_9000F_Mark_II
lea ecx, [ebp - 0x244]
call fcn.004035a0
mov edx, dword [ebp - 0x23c]
xor eax, eax
cmp edx, 0x9fbf1
jne 0x55e21c
mov eax, 1
mov ecx, dword [0x61fa68]
test ecx, ecx
je 0x55e23c
push 0x200ffff
push dword [eax*4 + 0x61feb8]
call ecx
mov edx, dword [ebp - 0x23c]
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x24c], eax
test ecx, ecx
jle 0x55e3d1
add eax, 0x2000001
lea ecx, [ebp - 0x26c]
push eax
call fcn.0058d5b0
add esp, 4
xor eax, eax
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x26c]
test esi, esi
setne al
test eax, eax
je 0x55dc92
mov eax, dword [ebp - 0x244]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55e2ad
test dx, dx
je 0x55e2a9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55e2ad
add eax, 4
add ecx, 4
test dx, dx
jne 0x55e287
xor eax, eax
jmp 0x55e2b2
sbb eax, eax
or eax, 1
test eax, eax
je 0x55e2f8
add esi, 0xfffffff0
mov byte [ebp - 4], 0xa
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55e2d4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x24c]
mov edx, dword [ebp - 0x23c]
inc eax
mov dword [ebp - 0x24c], eax
cmp eax, dword [ebp - 0x240]
jl 0x55e252
jmp 0x55e3cb
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x240], 0
cmp eax, 0x9fbf1
jne 0x55e319
mov dword [ebp - 0x240], 1
mov edx, dword [0x61fa1c]
test edx, edx
je 0x55e34f
mov eax, dword [ebp - 0x250]
mov ecx, dword [eax - 0xc]
inc ecx
push ecx
push eax
mov eax, dword [ebp - 0x240]
push 0xa0010
push dword [eax*4 + 0x61feb8]
call edx
mov edx, dword [0x61fa1c]
mov eax, dword [ebp - 0x23c]
xor ecx, ecx
cmp eax, 0x9fbf1
jne 0x55e35d
mov ecx, 1
test edx, edx
je 0x55e37b
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push 0xa0011
push dword [ecx*4 + 0x61feb8]
call edx
mov eax, dword [ebp - 0x23c]
xor edx, edx
cmp eax, 0x9fbf1
jne 0x55e389
mov edx, 1
mov ecx, dword [0x61fa38]
test ecx, ecx
je 0x55e3ad
mov eax, dword [ebp - 0x24c]
add eax, 0x2000001
push eax
push 0x2000000
push dword [edx*4 + 0x61feb8]
call ecx
add esi, 0xfffffff0
mov byte [ebp - 4], 0xa
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55e3cb
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x254]
mov byte [ebp - 4], 9
or ecx, 0xffffffff
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55e3f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
or ecx, 0xffffffff
mov edx, dword [ebp - 0x25c]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55e419
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 7
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55e437
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
or edi, 0xffffffff
mov edx, dword [ebp - 0x250]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55e45d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 5
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55e47a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 3
mov ecx, edi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x55e497
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x258], 0
jmp 0x55e4b7
push 0
lea edx, [ebp - 0x244]
mov ecx, edi
call fcn.00566170
add esp, 4
or edi, 0xffffffff
test eax, eax
jne 0x55e50d
mov ebx, dword [ebp - 0x268]
mov al, byte [ebx + 0x70]
mov dword [ebx + 0x44], 0x9e600
cmp al, 0xc
je 0x55e4dd
cmp al, 0xd
je 0x55e4dd
mov edx, 0x9e600
xor ecx, ecx
call fcn.00547e20
cmp byte [ebx + 0x5c], 0
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], 0
je 0x55e4fb
mov eax, dword [0x61f990]
test eax, eax
je 0x55e4fb
call eax
cmp byte [ebx + 0x5d], 0
mov byte [ebx + 0x5c], 0
je 0x55e509
mov byte [ebx + 0x5d], 0
xor bl, bl
jmp 0x55e513
mov bl, byte [ebp - 0x235]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x244]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x55e537
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00527e2c
mov esp, ebp
pop ebp
ret 4