Function at 0x55dd40
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5affea
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x616040]
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 [0x621f0c]
mov eax, 0x2aaaaaab
sub ecx, dword [0x621f08]
mov ebx, 0x621ed0
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 0x55df7f
push edi
push eax
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0055e9d0
test al, al
jne 0x55ddda
push 0x60bae4
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 [0x621968]
test al, al
jne 0x55de23
push 0x60bae4
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x233
push eax
call fcn.0052d791
push dword [ebp - 0x258]
mov ecx, 0x621f08
call fcn.00405a70
xor esi, esi
mov eax, dword [ebp - 0x258]
cmp esi, eax
jae 0x55debd
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 0x55de6c
xor ecx, ecx
jmp 0x55de7a
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x55de71
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, 0x621f08
call fcn.004059f0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x220], 0x10
jb 0x55deb7
push dword [ebp - 0x234]
call fcn.0040d50c
add esp, 4
inc esi
jmp 0x55de35
mov ecx, dword [0x6219d8]
test ecx, ecx
je 0x55deef
push eax
push dword [ebp - 0x250]
call ecx
test al, al
jne 0x55deef
push 0x60bae4
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 0x55df58
mov edi, dword [ebp - 0x23c]
sub esp, 8
mov dword [ebp - 4], 0xffffffff
push 0
call fcn.0055e970
cmp byte [ebp - 0x235], 0
jne 0x55df7f
xor al, al
jmp 0x55e949
xor eax, eax
mov dword [ebp - 0x258], 0
cmp edi, 0x9fbf1
jne 0x55df98
mov eax, 1
mov ecx, dword [0x621a6c]
test ecx, ecx
jne 0x55dfa6
xor eax, eax
jmp 0x55dfb4
push 0x2000000
push dword [eax*4 + 0x621ebc]
call ecx
push eax
mov edx, edi
lea ecx, [ebp - 0x244]
call fcn.0058f590
add esp, 4
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x244]
cmp dword [eax - 0xc], 0
jne 0x55e8b0
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 0x55e002
mov edx, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x55e01b
push eax
push 0x200ffff
push dword [edx*4 + 0x621ebc]
call ecx
mov esi, dword [ebx + 0x38]
cmp esi, dword [ebx + 0x3c]
je 0x55e090
or ebx, 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x55e030
mov eax, dword [esi]
jmp 0x55e032
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.00566690
add esp, 4
test eax, eax
je 0x55e062
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 0x55e085
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0x18
cmp esi, dword [0x621f0c]
jne 0x55e026
call fcn.00414e1f
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x55e0ac
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.00414e1f
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x55e0da
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.00414e1f
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x55e130
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.00414e1f
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x55e15e
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.00414e1f
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x55e18c
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.0058b690
mov edx, dword [ebp - 0x23c]
lea ecx, [ebp - 0x264]
add esp, 4
push 0xa0010
call fcn.0058f590
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 0x55e1f0
push 0x80004005
call fcn.00402740
mov ecx, eax
mov eax, dword [ebp - 0x250]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55e21e
test dx, dx
je 0x55e21a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55e21e
add eax, 4
add ecx, 4
test dx, dx
jne 0x55e1f8
xor eax, eax
jmp 0x55e223
sbb eax, eax
or eax, 1
test eax, eax
je 0x55e3ca
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x274]
push eax
mov edx, str.DEVICEID
call fcn.0058b690
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 0x55e3b8
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.00414e1f
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x55e0a2
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.0058b690
xor eax, eax
add esp, 4
test ebx, ebx
setne al
test eax, eax
je 0x55e0a2
mov edi, dword [ebp - 0x278]
mov ecx, ebx
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55e359
test dx, dx
je 0x55e355
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55e359
add eax, 4
add ecx, 4
test dx, dx
jne 0x55e333
xor eax, eax
jmp 0x55e35e
sbb eax, eax
or eax, 1
test eax, eax
je 0x55e431
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 0x55e39a
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 0x55e280
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 0x55e7e1
mov eax, dword [ebp - 0x25c]
mov ecx, 0x5ea7c8
jmp 0x55e400
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55e54d
test dx, dx
je 0x55e42a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55e54d
add eax, 4
add ecx, 4
test dx, dx
jne 0x55e400
xor eax, eax
jmp 0x55e552
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x270]
push eax
mov edx, str.MS_INSTDATE
call fcn.0058b690
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x25c]
add esp, 4
mov edx, str.CATEGORY
push eax
call fcn.0058b690
mov edx, dword [ebp - 0x23c]
lea ecx, [ebp - 0x240]
add esp, 4
push 0xa0011
call fcn.0058f590
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 0x55e49d
push 0x80004005
call fcn.00402740
mov eax, dword [ebp - 0x270]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55e4cb
test dx, dx
je 0x55e4c7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55e4cb
add eax, 4
add ecx, 4
test dx, dx
jne 0x55e4a5
xor eax, eax
jmp 0x55e4d0
sbb eax, eax
or eax, 1
test eax, eax
jne 0x55e51b
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 0x55e4f2
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 0x55e510
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x254]
jmp 0x55e3b8
mov ecx, dword [ebp - 0x248]
lea eax, [ebp - 0x254]
push eax
mov edx, str.MS_INTERFACE
call fcn.0058b690
add esp, 4
push dword [ebp - 0x248]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x248], 0
jmp 0x55e4d4
sbb eax, eax
or eax, 1
test eax, eax
jne 0x55e5b6
mov ecx, 0x5ea7d0
mov eax, esi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55e586
test dx, dx
je 0x55e582
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55e586
add eax, 4
add ecx, 4
test dx, dx
jne 0x55e560
xor eax, eax
jmp 0x55e58b
sbb eax, eax
or eax, 1
test eax, eax
lea eax, [ebp - 0x244]
push ebx
jne 0x55e5a6
push str.Canon__s
push eax
call fcn.00402d50
add esp, 0xc
jmp 0x55e617
push str.Canon__s_Network
push eax
call fcn.00402d50
add esp, 0xc
jmp 0x55e617
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 0x55e5fc
test dx, dx
je 0x55e5f8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55e5fc
add eax, 4
add ecx, 4
test dx, dx
jne 0x55e5d6
xor eax, eax
jmp 0x55e601
sbb eax, eax
or eax, 1
test eax, eax
jne 0x55e617
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 0x55e62c
mov eax, 1
mov ecx, dword [0x621a6c]
test ecx, ecx
je 0x55e64c
push 0x200ffff
push dword [eax*4 + 0x621ebc]
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 0x55e7e1
add eax, 0x2000001
lea ecx, [ebp - 0x26c]
push eax
call fcn.0058f590
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 0x55e0a2
mov eax, dword [ebp - 0x244]
mov ecx, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55e6bd
test dx, dx
je 0x55e6b9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55e6bd
add eax, 4
add ecx, 4
test dx, dx
jne 0x55e697
xor eax, eax
jmp 0x55e6c2
sbb eax, eax
or eax, 1
test eax, eax
je 0x55e708
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 0x55e6e4
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 0x55e662
jmp 0x55e7db
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x240], 0
cmp eax, 0x9fbf1
jne 0x55e729
mov dword [ebp - 0x240], 1
mov edx, dword [0x621a1c]
test edx, edx
je 0x55e75f
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 + 0x621ebc]
call edx
mov edx, dword [0x621a1c]
mov eax, dword [ebp - 0x23c]
xor ecx, ecx
cmp eax, 0x9fbf1
jne 0x55e76d
mov ecx, 1
test edx, edx
je 0x55e78b
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push 0xa0011
push dword [ecx*4 + 0x621ebc]
call edx
mov eax, dword [ebp - 0x23c]
xor edx, edx
cmp eax, 0x9fbf1
jne 0x55e799
mov edx, 1
mov ecx, dword [0x621a3c]
test ecx, ecx
je 0x55e7bd
mov eax, dword [ebp - 0x24c]
add eax, 0x2000001
push eax
push 0x2000000
push dword [edx*4 + 0x621ebc]
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 0x55e7db
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 0x55e805
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 0x55e829
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 0x55e847
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 0x55e86d
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 0x55e88a
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 0x55e8a7
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x258], 0
jmp 0x55e8c7
push 0
lea edx, [ebp - 0x244]
mov ecx, edi
call fcn.00566690
add esp, 4
or edi, 0xffffffff
test eax, eax
jne 0x55e91d
mov ebx, dword [ebp - 0x268]
mov al, byte [ebx + 0x70]
mov dword [ebx + 0x44], 0x9e600
cmp al, 0xc
je 0x55e8ed
cmp al, 0xd
je 0x55e8ed
mov edx, 0x9e600
xor ecx, ecx
call fcn.00547e40
cmp byte [ebx + 0x5c], 0
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x44], 0
je 0x55e90b
mov eax, dword [0x621990]
test eax, eax
je 0x55e90b
call eax
cmp byte [ebx + 0x5d], 0
mov byte [ebx + 0x5c], 0
je 0x55e919
mov byte [ebx + 0x5d], 0
xor bl, bl
jmp 0x55e923
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 0x55e947
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