Function at 0x414b70
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415b0d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x41e010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x48], 0
lea ebx, [esi + 0x30]
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
xor ecx, ecx
mov word [esi], ax
xor edx, edx
mov dword [esi + 0x2c], 7
lea eax, [esi + 0x18]
mov dword [eax + 0x10], 0
mov word [eax], cx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], ecx
mov word [ebx], cx
mov dword [esi + 0x5c], 7
mov dword [esi + 0x58], ecx
mov dword [ebp - 0x4c], esi
mov word [esi + 0x48], dx
mov dword [ebp - 4], edx
mov dword [ebp - 0x48], 1
cmp dword [edi + 0x10], edx
jne 0x414c8a
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], edx
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push 0x20019
push edx
push str.SOFTWARECanonIJ_Scan_Utility
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x40]
mov edx, str.AppPath
push eax
lea ecx, [ebp - 0x44]
call fcn.00412370
add esp, 4
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], 0
lea eax, [esi + 0x18]
cmp eax, ecx
je 0x414c73
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00401bc0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x2c], 8
jb 0x414c9a
push dword [ebp - 0x40]
call fcn.00403e5a
add esp, 4
jmp 0x414c9a
cmp eax, edi
je 0x414c9a
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00401bc0
push 0x1b
xor eax, eax
mov dword [ebp - 0x14], 7
push str.__StiDevice:_1__StiEvent:_2
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004015c0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [esi + 0x18]
call fcn.00402680
mov byte [ebp - 4], 0
cmp dword [ebp - 0x14], 8
jb 0x414ce9
push dword [ebp - 0x28]
call fcn.00403e5a
add esp, 4
cmp dword [edi + 0x14], 8
jb 0x414cf3
mov edx, dword [edi]
jmp 0x414cf5
mov edx, edi
push 0x41b938
lea ecx, [ebp - 0x28]
call fcn.004149c0
add esp, 4
mov dword [ebp - 0x44], eax
cmp ebx, eax
je 0x414d3a
cmp dword [ebx + 0x14], 8
jb 0x414d1f
push dword [ebx]
call fcn.00403e5a
mov eax, dword [ebp - 0x44]
add esp, 4
xor ecx, ecx
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
mov word [ebx], cx
mov ecx, ebx
push eax
call fcn.00401b60
cmp dword [ebp - 0x14], 8
jb 0x414d4b
push dword [ebp - 0x28]
call fcn.00403e5a
add esp, 4
cmp dword [esi + 0x40], 0
jne 0x414d5f
push 0x16
push str.Canon_IJ_Scan_Utitlity
mov ecx, ebx
call fcn.004015c0
push 9
push str.sti.dll_0
lea ecx, [esi + 0x48]
call fcn.004015c0
cmp dword [edi + 0x14], 8
jb 0x414d76
mov edi, dword [edi]
push 0x41b99c
mov edx, edi
lea ecx, [ebp - 0x28]
call fcn.004149c0
mov edi, eax
add esp, 4
cmp esi, edi
je 0x414db9
cmp dword [esi + 0x14], 8
jb 0x414d9e
push dword [esi]
call fcn.00403e5a
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.00401b60
cmp dword [ebp - 0x14], 8
jb 0x414dca
push dword [ebp - 0x28]
call fcn.00403e5a
add esp, 4
cmp dword [esi + 0x10], 0
jne 0x414dde
push 0x16
push str.Canon_IJ_Scan_Utitlity
mov ecx, esi
call fcn.004015c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403660
mov esp, ebp
pop ebp
ret