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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42f4ad
mov eax, dword fs:[0]
push eax
sub esp, 0x5e8
mov eax, dword [0x43e028]
xor eax, esp
mov dword [esp + 0x5e0], eax
push ebx
push esi
push edi
mov eax, dword [0x43e028]
xor eax, esp
push eax
lea eax, [esp + 0x5f8]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
cmp edi, ebx
je 0x409959
lea esi, [edi + 0x34]
jmp 0x40995b
xor esi, esi
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
call edx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 4]
push esi
call eax
test eax, eax
je 0x4099a3
push str.ScannerDriver_SetISDIScannerDriverDelegate___Failed.
mov edx, 0x40
push 0x431edc
push str.CESAStartScanningCommand::Execute
mov ecx, 5
mov eax, 0x441928
call fcn.0040dee0
add esp, 0xc
mov dword [esp + 0x1c], 1
jmp 0x40a7cf
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
mov dword [esp + 0x28], ebx
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x78]
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call edx
cmp eax, ebx
je 0x4099ce
push str.ScannerDriver_GetISDIDeviceManager2___Failed.
mov edx, 0x45
jmp 0x40997a
lea eax, [esp + 0x32c]
push eax
call fcn.00404ea0
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
mov byte [esp + 0x484], bl
mov dword [esp + 0x600], ebx
xor ecx, ecx
mov dword [esp + 0xfc], vtable.CSDIString.0
mov dword [esp + 0x114], 7
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], cx
mov byte [esp + 0x600], 1
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0xfc]
push eax
call edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.00408b30
lea esi, [esp + 0xb4]
lea edx, [esp + 0xfc]
mov byte [esp + 0x600], 2
call fcn.00404e60
lea ecx, [esp + 0x5c]
mov edx, eax
mov byte [esp + 0x600], 3
call fcn.00419570
mov byte [esp + 0x600], 2
cmp dword [esp + 0xc8], 8
jb 0x409a96
mov edx, dword [esp + 0xb4]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
push 0x4d
push 0x431edc
lea ecx, [esp + 0x64]
call fcn.00403cc0
add esp, 8
cmp eax, ebx
jne 0x409b1d
push str.parDictDevices_is_NULL
mov edx, 0x4e
push 0x431edc
push str.CESAStartScanningCommand::Execute
lea ecx, [edx - 0x49]
mov eax, 0x441928
call fcn.0040dee0
mov dword [esp + 0x28], 1
add esp, 0xc
lea ecx, [esp + 0x5c]
mov byte [esp + 0x600], 1
call fcn.004087f0
lea ecx, [esp + 0xfc]
call fcn.00401050
mov dword [esp + 0x600], 0xffffffff
lea ecx, [esp + 0x32c]
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
call fcn.00404f70
jmp 0x40a7cf
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
lea esi, [esp + 0x2c]
call fcn.00403e70
lea eax, [esp + 0x10]
lea esi, [esp + 0x50]
call fcn.00403eb0
jmp 0x409b40
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x58]
je 0x409df2
lea edx, [esp + 0x2c]
call fcn.00403ef0
lea ecx, [esp + 0x1cc]
push ecx
mov esi, eax
call fcn.00404ea0
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
mov byte [esp + 0x324], bl
mov ebx, esi
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x600], 4
call fcn.00405e20
lea esi, [esp + 0x190]
mov edx, edi
call fcn.004092c0
mov byte [esp + 0x600], 5
mov ebx, dword [esp + 0x14]
or ebx, 1
cmp dword [eax + 0x10], 0
mov dword [esp + 0x14], ebx
je 0x409c31
lea edx, [esp + 0x1cc]
push edx
lea esi, [esp + 0xd4]
call fcn.00404df0
mov dword [esp + 0x10], eax
mov dword [esp + 0x600], 6
or ebx, 2
lea esi, [esp + 0x174]
mov edx, edi
mov dword [esp + 0x14], ebx
call fcn.004092c0
mov ecx, eax
mov dword [esp + 0x600], 7
mov eax, dword [esp + 0x10]
or ebx, 4
cmp byte [eax], 0
mov dword [esp + 0x14], ebx
je 0x409ea4
mov edi, dword [eax + 0x14]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x409c1c
mov eax, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call fcn.004010f0
test eax, eax
je 0x409cd1
mov edi, dword [esp + 0x18]
lea esi, [esp + 0xb4]
mov edx, edi
call fcn.004092f0
mov dword [esp + 0x600], 9
or ebx, 8
cmp dword [eax + 0x10], 0
mov dword [esp + 0x14], ebx
je 0x409ce0
lea ecx, [esp + 0x1cc]
push ecx
lea esi, [esp + 0x1b0]
call fcn.00404d80
mov dword [esp + 0x10], eax
mov dword [esp + 0x600], 0xa
or ebx, 0x10
lea esi, [esp + 0x13c]
mov edx, edi
mov dword [esp + 0x14], ebx
call fcn.004092f0
mov ecx, eax
mov dword [esp + 0x600], 0xb
mov edx, dword [esp + 0x10]
or ebx, 0x20
cmp byte [edx], 0
mov dword [esp + 0x14], ebx
je 0x409ed8
mov eax, edx
mov edi, dword [eax + 0x14]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x409cc4
mov eax, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call fcn.004010f0
test eax, eax
jne 0x409cdc
mov edi, dword [esp + 0x18]
mov byte [esp + 0x10], 1
jmp 0x409ce5
mov edi, dword [esp + 0x18]
mov byte [esp + 0x10], 0
test bl, 0x20
je 0x409cfd
and ebx, 0xffffffdf
lea esi, [esp + 0x13c]
mov dword [esp + 0x14], ebx
call fcn.004016b0
test bl, 0x10
je 0x409d15
and ebx, 0xffffffef
lea esi, [esp + 0x1ac]
mov dword [esp + 0x14], ebx
call fcn.00408d60
test bl, 8
je 0x409d2d
and ebx, 0xfffffff7
lea esi, [esp + 0xb4]
mov dword [esp + 0x14], ebx
call fcn.004016b0
test bl, 4
je 0x409d45
and ebx, 0xfffffffb
lea esi, [esp + 0x174]
mov dword [esp + 0x14], ebx
call fcn.004016b0
test bl, 2
je 0x409d5d
and ebx, 0xfffffffd
lea esi, [esp + 0xd0]
mov dword [esp + 0x14], ebx
call fcn.00408d60
mov dword [esp + 0x600], 4
test bl, 1
je 0x409d80
and ebx, 0xfffffffe
lea esi, [esp + 0x190]
mov dword [esp + 0x14], ebx
call fcn.004016b0
cmp byte [esp + 0x10], 0
jne 0x409db1
mov byte [esp + 0x600], 2
lea ecx, [esp + 0x1cc]
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
call fcn.00404f70
inc dword [esp + 0x34]
xor ebx, ebx
jmp 0x409b40
lea ebx, [esp + 0x1cc]
lea edi, [esp + 0x32c]
call fcn.00404410
mov al, byte [esp + 0x324]
mov byte [esp + 0x600], 2
mov ecx, ebx
mov byte [esp + 0x484], al
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
call fcn.00404f70
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x32c]
call fcn.004045c0
mov eax, dword [eax + 8]
dec eax
mov eax, dword [esp + 0xe0]
sete byte [esp + 0x10]
cmp eax, ebx
je 0x409e23
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
lea edx, [esp + 0xd4]
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0x20], edx
mov eax, edx
push eax
mov byte [esp + 0x604], 0xd
call fcn.00408c50
mov byte [esp + 0x600], 2
mov ecx, dword [esp + 0xd4]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
cmp byte [esp + 0x10], bl
je 0x409f0c
push str.cMatchedDevice_not_Found.
mov edx, 0x5b
push 0x431edc
push str.CESAStartScanningCommand::Execute
lea ecx, [edx - 0x56]
mov eax, 0x441928
call fcn.0040dee0
mov dword [esp + 0x28], 0xa
jmp 0x409ad6
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], str.Attempted_to_access_the_value_of_an_uninitialized_optional_object.
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [esp + 0x38], vtable.boost::bad_optional_access.0
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x604], 8
call fcn.00405dd0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], str.Attempted_to_access_the_value_of_an_uninitialized_optional_object.
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [esp + 0x44], vtable.boost::bad_optional_access.0
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x604], 0xc
call fcn.00405dd0
lea edx, [esp + 0x48c]
push edx
call fcn.00404ea0
mov dword [esp + 0x48c], 0x431db8
mov byte [esp + 0x5e4], bl
xor eax, eax
mov dword [esp + method.CSDIString.virtual_0], vtable.CSDIString.0
mov dword [esp + 0x134], 7
mov dword [esp + 0x130], ebx
mov word [esp + 0x120], ax
mov byte [esp + 0x600], 0xf
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x11c]
push eax
call edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x8c]
push ecx
call fcn.00408b30
lea esi, [esp + 0xb4]
lea edx, [esp + 0x11c]
mov byte [esp + 0x600], 0x10
call fcn.00404e60
lea ecx, [esp + 0x88]
mov edx, eax
mov byte [esp + 0x600], 0x11
call fcn.00419570
mov byte [esp + 0x600], 0x10
cmp dword [esp + 0xc8], 8
jb 0x409fd3
mov edx, dword [esp + 0xb4]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
push 0x63
push 0x431edc
lea ecx, [esp + 0x90]
call fcn.00403cc0
add esp, 8
cmp eax, ebx
jne 0x40a09d
push str.parDictDevices_is_NULL
mov edx, 0x64
push 0x431edc
push str.CESAStartScanningCommand::Execute
lea ecx, [edx - 0x5f]
mov eax, 0x441928
call fcn.0040dee0
mov dword [esp + 0x28], 1
add esp, 0xc
lea ecx, [esp + 0x88]
mov byte [esp + 0x600], 0xf
call fcn.004087f0
lea ecx, [esp + 0x11c]
call fcn.00401050
mov byte [esp + 0x600], 2
mov esi, vtable.CDVMDeviceInfo.0
lea ecx, [esp + 0x48c]
mov dword [esp + 0x48c], esi
call fcn.00404f70
lea ecx, [esp + 0x5c]
mov byte [esp + 0x600], 1
call fcn.004087f0
lea ecx, [esp + 0xfc]
call fcn.00401050
mov dword [esp + 0x600], 0xffffffff
lea ecx, [esp + 0x32c]
mov dword [esp + 0x32c], esi
call fcn.00404f70
jmp 0x40a7cf
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
lea esi, [esp + 0x2c]
call fcn.00403e70
lea eax, [esp + 0x10]
lea esi, [esp + 0x50]
call fcn.00403eb0
jmp 0x40a0c0
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x58]
je 0x40a39f
lea edx, [esp + 0x2c]
call fcn.00403ef0
lea ecx, [esp + 0x1cc]
push ecx
mov esi, eax
call fcn.00404ea0
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
mov byte [esp + 0x324], bl
mov ebx, esi
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x600], 0x12
call fcn.00405e20
lea esi, [esp + 0xb4]
mov edx, edi
call fcn.004092c0
mov byte [esp + 0x600], 0x13
mov ebx, dword [esp + 0x14]
or ebx, 0x40
cmp dword [eax + 0x10], 0
mov dword [esp + 0x14], ebx
je 0x40a1bb
lea edx, [esp + 0x1cc]
push edx
lea esi, [esp + 0x1b0]
call fcn.00404df0
mov dword [esp + 0x10], eax
mov dword [esp + 0x600], 0x14
or ebx, 0x80
lea esi, [esp + 0x13c]
mov edx, edi
mov dword [esp + 0x14], ebx
call fcn.004092c0
mov ecx, eax
mov dword [esp + 0x600], 0x15
mov eax, dword [esp + 0x10]
or ebx, 0x100
cmp byte [eax], 0
mov dword [esp + 0x14], ebx
je 0x40a3ff
mov edi, dword [eax + 0x14]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x40a1a6
mov eax, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call fcn.004010f0
test eax, eax
je 0x40a264
mov edi, dword [esp + 0x18]
lea esi, [esp + 0x174]
mov edx, edi
call fcn.004092f0
mov dword [esp + 0x600], 0x17
or ebx, 0x200
cmp dword [eax + 0x10], 0
mov dword [esp + 0x14], ebx
je 0x40a273
lea ecx, [esp + 0x1cc]
push ecx
lea esi, [esp + 0xd4]
call fcn.00404d80
mov dword [esp + 0x10], eax
mov dword [esp + 0x600], 0x18
or ebx, 0x400
lea esi, [esp + 0x190]
mov edx, edi
mov dword [esp + 0x14], ebx
call fcn.004092f0
mov ecx, eax
mov dword [esp + 0x600], 0x19
mov edx, dword [esp + 0x10]
or ebx, 0x800
cmp byte [edx], 0
mov dword [esp + 0x14], ebx
je 0x40a433
mov eax, edx
mov edi, dword [eax + 0x14]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x40a257
mov eax, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call fcn.004010f0
test eax, eax
jne 0x40a26f
mov edi, dword [esp + 0x18]
mov byte [esp + 0x10], 1
jmp 0x40a278
mov edi, dword [esp + 0x18]
mov byte [esp + 0x10], 0
test ebx, 0x800
je 0x40a296
and ebx, 0xfffff7ff
lea esi, [esp + 0x190]
mov dword [esp + 0x14], ebx
call fcn.004016b0
test ebx, 0x400
je 0x40a2b4
and ebx, 0xfffffbff
lea esi, [esp + 0xd0]
mov dword [esp + 0x14], ebx
call fcn.00408d60
test ebx, 0x200
je 0x40a2d2
and ebx, 0xfffffdff
lea esi, [esp + 0x174]
mov dword [esp + 0x14], ebx
call fcn.004016b0
test ebx, 0x100
je 0x40a2f0
and ebx, 0xfffffeff
lea esi, [esp + 0x13c]
mov dword [esp + 0x14], ebx
call fcn.004016b0
test bl, bl
jns 0x40a30a
and ebx, 0xffffff7f
lea esi, [esp + 0x1ac]
mov dword [esp + 0x14], ebx
call fcn.00408d60
mov dword [esp + 0x600], 0x12
test bl, 0x40
je 0x40a32d
and ebx, 0xffffffbf
lea esi, [esp + 0xb4]
mov dword [esp + 0x14], ebx
call fcn.004016b0
cmp byte [esp + 0x10], 0
jne 0x40a35e
mov byte [esp + 0x600], 0x10
lea ecx, [esp + 0x1cc]
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
call fcn.00404f70
inc dword [esp + 0x34]
xor ebx, ebx
jmp 0x40a0c0
lea ebx, [esp + 0x1cc]
lea edi, [esp + 0x48c]
call fcn.00404410
mov al, byte [esp + 0x324]
mov byte [esp + 0x600], 0x10
mov ecx, ebx
mov byte [esp + 0x5e4], al
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
call fcn.00404f70
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x48c]
call fcn.004045c0
mov eax, dword [eax + 8]
dec eax
lea ecx, [esp + 0xd0]
sete byte [esp + 0x10]
call fcn.004087f0
cmp byte [esp + 0x10], bl
je 0x40a467
push str.cFoundDevice_not_Found.
mov edx, 0x71
push 0x431edc
push str.CESAStartScanningCommand::Execute
lea ecx, [edx - 0x6c]
mov eax, 0x441928
call fcn.0040dee0
mov dword [esp + 0x28], 0x1e
jmp 0x40a01a
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x24], str.Attempted_to_access_the_value_of_an_uninitialized_optional_object.
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [esp + 0x44], vtable.boost::bad_optional_access.0
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x604], 0x16
call fcn.00405dd0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x28], str.Attempted_to_access_the_value_of_an_uninitialized_optional_object.
call dword [sym.imp.MSVCR100.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
mov dword [esp + 0x38], vtable.boost::bad_optional_access.0
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x604], 0x1a
call fcn.00405dd0
lea edx, [esp + 0x158]
push edx
lea eax, [esp + 0x490]
push eax
call fcn.00404550
mov byte [esp + 0x600], 0x1b
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
cmp dword [esp + 0x16c], 8
mov ecx, dword [esp + 0x158]
jae 0x40a4a5
lea ecx, [esp + 0x158]
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x24]
call eax
lea esi, [esp + 0x158]
call fcn.004016b0
lea ecx, [esp + 0x88]
mov byte [esp + 0x600], 0xf
call fcn.004087f0
lea ecx, [esp + 0x11c]
call fcn.00401050
mov byte [esp + 0x600], 2
mov esi, vtable.CDVMDeviceInfo.0
lea ecx, [esp + 0x48c]
mov dword [esp + 0x48c], esi
call fcn.00404f70
lea ecx, [esp + 0x5c]
mov byte [esp + 0x600], 1
call fcn.004087f0
lea ecx, [esp + 0xfc]
call fcn.00401050
mov dword [esp + 0x600], 0xffffffff
lea ecx, [esp + 0x32c]
mov dword [esp + 0x32c], esi
call fcn.00404f70
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
call eax
cmp eax, ebx
je 0x40a57d
push str.ScannerDriver_Open_Failed.
mov edx, 0x78
push 0x431edc
push str.CESAStartScanningCommand::Execute
lea ecx, [edx - 0x73]
mov eax, 0x441928
call fcn.0040dee0
add esp, 0xc
mov dword [esp + 0x1c], 0x1e
jmp 0x40a7cf
mov dword [esp + 0x20], vtable.CES2TextFileIO.0
mov dword [esp + 0x600], 0x1c
xor ecx, ecx
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebx
mov word [esp + 0xb4], cx
sub esp, 0x1c
mov byte [esp + 0x61c], 0x1d
mov esi, esp
mov edx, edi
mov dword [esp + 0x40], esp
call fcn.00409320
lea ecx, [esp + 0xd0]
call fcn.00401750
cmp eax, ebx
je 0x40a78c
cmp dword [esp + 0xc4], ebx
je 0x40a78c
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0xd4]
push eax
call fcn.00408b30
mov eax, str.kDrvSerializedAllValues
lea ecx, [esp + 0x13c]
mov byte [esp + 0x600], 0x1e
call fcn.00401f00
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [esp + 0x140]
lea esi, [esp + 0xd4]
mov byte [esp + 0x604], 0x1f
call fcn.00407ea0
mov edi, eax
call fcn.00408250
lea esi, [esp + 0x13c]
mov byte [esp + 0x600], 0x1e
call fcn.004016b0
lea edx, [esp + 0xb4]
lea ecx, [esp + 0xd0]
call fcn.004193f0
mov edi, dword [esp + 0x18]
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
cmp dword [esp + 0xc8], 8
mov ecx, dword [esp + 0xb4]
jae 0x40a686
lea ecx, [esp + 0xb4]
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x48]
push str.kDrvSerializedAllValues
call eax
cmp eax, ebx
je 0x40a6de
push str.ScannerSettingFile_SetValueForKey_Failed.
mov edx, 0x83
push 0x431edc
push str.CESAStartScanningCommand::Execute
lea ecx, [edx - 0x7e]
mov eax, 0x441928
call fcn.0040dee0
add esp, 0xc
lea ecx, [esp + 0xd0]
mov dword [esp + 0x1c], 0x14
mov byte [esp + 0x600], 0x1d
call fcn.004087f0
jmp 0x40a7b8
lea ecx, [esp + 0xd0]
mov byte [esp + 0x600], 0x1d
call fcn.004087f0
lea esi, [esp + 0xb4]
call fcn.004016b0
mov dword [esp + 0x600], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x30]
call eax
test eax, eax
je 0x40a752
push str.ScannerDriver_Scan_Failed.
push 0x431edc
push str.CESAStartScanningCommand::Execute
mov edx, 0x87
mov ecx, 5
mov eax, 0x441928
call fcn.0040dee0
add esp, 0xc
mov dword [esp + 0x1c], 0x28
jmp 0x40a7cf
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
test al, al
je 0x40a7cf
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
push 1
call esi
mov ecx, edi
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x1c]
call eax
test al, al
jne 0x40a770
jmp 0x40a7cf
push str.ScannerSettingFile_ReadFileToString___Failed.
mov edx, 0x7e
push 0x431edc
push str.CESAStartScanningCommand::Execute
lea ecx, [edx - 0x79]
mov eax, 0x441928
call fcn.0040dee0
add esp, 0xc
mov dword [esp + 0x1c], 0x14
lea esi, [esp + 0xb4]
call fcn.004016b0
mov dword [esp + 0x600], 0xffffffff
mov ecx, dword [esp + 0x1c]
mov dword [0x441900], ecx
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [esp + 0x5f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5e0]
xor ecx, esp
call fcn.0042b091
mov esp, ebp
pop ebp
ret