Function at 0x40ecf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4133b7
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x41907c]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x41907c]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x30], edx
call fcn.00402a00
xor esi, esi
mov dword [esp + 0x118], esi
mov eax, dword [esp + 0x84]
push str.Canon_MF_Scan_Utility
lea edi, [esi + 0x15]
lea ecx, [esp + 0x78]
call fcn.004019e0
test eax, eax
jne 0x40f195
mov eax, dword [ebx + 0x10]
push str.regist
lea edi, [esi + 6]
mov ecx, ebx
call fcn.004019e0
test eax, eax
jne 0x40ed98
cmp dword [esp + 0xa0], esi
je 0x40f195
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
push 4
lea esi, [esp + 0x1c]
mov byte [esp + 0x11c], 1
call fcn.004031f0
xor eax, eax
xor ecx, ecx
push eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x50], eax
mov word [esp + 0x40], cx
push ebx
or eax, 0xffffffff
lea ecx, [esp + 0x44]
mov dword [esp + 0x58], 7
call fcn.004018e0
mov byte [esp + 0x118], 2
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x3c]
mov esi, edx
cmp eax, 8
jae 0x40eece
lea esi, [esp + 0x3c]
mov ecx, esi
mov edi, dword [esp + 0x4c]
cmp eax, 8
lea ecx, [ecx + edi*2]
mov eax, edx
jae 0x40ee11
lea eax, [esp + 0x3c]
cmp eax, ecx
je 0x40ee25
lea edx, [esp + 0x14]
push esi
push edx
mov ebx, ecx
call fcn.00403430
add esp, 8
mov eax, dword [esp + 0x4c]
push str.regist
mov edi, 6
lea ecx, [esp + 0x40]
call fcn.004019e0
lea ebx, [edi - 3]
test eax, eax
jne 0x40ee65
lea eax, [esp + 0x14]
lea edi, [esp + 0x18]
mov dword [esp + 0x14], ebx
call fcn.00403190
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.00403190
mov eax, dword [esp + 0x4c]
push str.unregist
mov edi, 8
lea ecx, [esp + 0x40]
call fcn.004019e0
test eax, eax
jne 0x40eea6
lea eax, [esp + 0x74]
push eax
call fcn.004101f0
add esp, 4
test eax, eax
je 0x40eea6
lea eax, [esp + 0x14]
lea edi, [esp + 0x18]
mov dword [esp + 0x14], 2
call fcn.00403190
mov eax, dword [esp + 0x4c]
push str.regist_sti_proxy
mov edi, 0x10
lea ecx, [esp + 0x40]
call fcn.004019e0
test eax, eax
jne 0x40eed5
mov dword [esp + 0x14], 1
jmp 0x40ef76
mov ecx, edx
jmp 0x40edff
mov eax, dword [esp + 0x4c]
push str.unregist_sti_proxy
mov edi, 0x12
lea ecx, [esp + 0x40]
call fcn.004019e0
test eax, eax
jne 0x40eefa
mov dword [esp + 0x14], 2
jmp 0x40ef76
mov eax, dword [esp + 0x4c]
push str.regist_pushevent
mov edi, 0x10
lea ecx, [esp + 0x40]
call fcn.004019e0
test eax, eax
jne 0x40ef1b
mov dword [esp + 0x14], ebx
jmp 0x40ef76
mov eax, dword [esp + 0x4c]
push str.unregist_pushevent
mov edi, 0x12
lea ecx, [esp + 0x40]
call fcn.004019e0
test eax, eax
jne 0x40ef40
mov dword [esp + 0x14], 4
jmp 0x40ef76
mov esi, str.set_default_pushevent
lea ecx, [esp + 0x3c]
call fcn.00403380
test al, al
je 0x40ef5c
mov dword [esp + 0x14], 0
jmp 0x40ef76
mov esi, str.reset_default_pushevent
lea ecx, [esp + 0x3c]
call fcn.00403380
test al, al
je 0x40ef83
mov dword [esp + 0x14], 5
lea eax, [esp + 0x14]
lea edi, [esp + 0x18]
call fcn.00403190
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], 0
cmp edi, dword [esp + 0x1c]
jne 0x40efe5
mov esi, dword [esp + 0x4c]
mov edx, esi
cmp esi, 6
jb 0x40efa5
mov edx, 6
cmp dword [esp + 0x50], 8
mov ecx, dword [esp + 0x3c]
jae 0x40efb4
lea ecx, [esp + 0x3c]
mov eax, str.regist
test edx, edx
je 0x40f113
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x40f10b
add ecx, 2
add eax, 2
dec edx
jne 0x40efc1
jmp 0x40f113
mov ebx, 3
mov ecx, dword [edi]
cmp ecx, 2
jne 0x40f074
mov ecx, dword [esp + 0x2c]
push ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0
call fcn.0040e7b0
add esp, 4
cmp dword [esp + 0x34], 1
jne 0x40f08a
xor edx, edx
push edx
mov eax, 0x41637c
lea esi, [esp + 0x5c]
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], 0
mov word [esp + 0x5c], dx
call fcn.004012f0
mov ecx, dword [esp + 0x38]
mov eax, esi
push eax
push ecx
mov ecx, 2
mov byte [esp + 0x120], bl
call fcn.004117f0
add esp, 8
mov byte [esp + 0x118], 2
cmp dword [esp + 0x6c], 8
mov dword [esp + 0x28], eax
jb 0x40f08a
mov edx, dword [esp + 0x58]
push edx
call fcn.00403d7c
add esp, 4
jmp 0x40f08a
mov eax, dword [esp + 0x30]
push eax
lea edx, [esp + 0x78]
push edx
call fcn.004117f0
add esp, 8
mov dword [esp + 0x28], eax
mov esi, dword [esp + 0x4c]
mov edx, esi
cmp esi, 6
jb 0x40f09a
mov edx, 6
cmp dword [esp + 0x50], 8
mov ecx, dword [esp + 0x3c]
jae 0x40f0a9
lea ecx, [esp + 0x3c]
mov eax, str.regist
test edx, edx
je 0x40f0cd
mov bx, word [ecx]
cmp bx, word [eax]
jne 0x40f0c5
add ecx, 2
add eax, 2
dec edx
jne 0x40f0b2
jmp 0x40f0cd
sbb eax, eax
and eax, 0xfffffffe
inc eax
jne 0x40f0da
cmp esi, 6
jb 0x40f0e4
xor eax, eax
cmp esi, 6
setne al
test eax, eax
jne 0x40f0e4
cmp dword [esp + 0x28], eax
jne 0x40f0fa
add edi, 4
cmp edi, dword [esp + 0x1c]
jne 0x40efe0
mov edi, dword [esp + 0x18]
jmp 0x40ef99
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], 1
jmp 0x40ef99
sbb eax, eax
and eax, 0xfffffffe
inc eax
jne 0x40f120
cmp esi, 6
jb 0x40f15d
xor eax, eax
cmp esi, 6
setne al
test eax, eax
jne 0x40f15d
cmp dword [esp + 0x14], eax
je 0x40f15d
lea eax, [esp + 0x74]
push eax
call fcn.004101f0
add esp, 4
test eax, eax
jne 0x40f150
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x78]
push edx
lea ecx, [eax + 1]
call fcn.004117f0
add esp, 8
mov eax, dword [esp + 0x2c]
push eax
call fcn.0040e200
add esp, 4
cmp dword [esp + 0x50], 8
jb 0x40f171
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.00403d7c
add esp, 4
xor edx, edx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], 0
mov word [esp + 0x3c], dx
test edi, edi
je 0x40f195
push edi
call fcn.00403d7c
add esp, 4
lea esi, [esp + 0x74]
call fcn.004011a0
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.0040366e
mov esp, ebp
pop ebp
ret