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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42f1c0
mov eax, dword fs:[0]
push eax
sub esp, 0x730
mov eax, dword [0x43e028]
xor eax, esp
mov dword [esp + 0x728], eax
push ebx
push esi
push edi
mov eax, dword [0x43e028]
xor eax, esp
push eax
lea eax, [esp + 0x740]
mov dword fs:[0], eax
xor ebx, ebx
mov edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
cmp edi, ebx
je 0x4025d9
lea esi, [edi + 0x34]
jmp 0x4025db
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 0x402623
push str.ScannerDriver_SetISDIScannerDriverDelegate___Failed.
mov edx, 0x40
push str.ESACreateScanSettingsCommand.cpp
push str.CESACreateScanSettingsCommand::Execute
mov ecx, 5
mov eax, 0x441928
call fcn.0040dee0
add esp, 0xc
mov dword [esp + 0x24], 1
jmp 0x403689
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
mov dword [esp + 0x2c], ebx
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x78]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
call edx
cmp eax, ebx
je 0x40264e
push str.GetISDIDeviceManager2___Failed.
mov edx, 0x45
jmp 0x4025fa
lea eax, [esp + 0x1b4]
push eax
call fcn.00404ea0
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
mov byte [esp + 0x30c], bl
mov dword [esp + 0x748], ebx
xor ecx, ecx
mov dword [esp + method.CSDIString.virtual_0], vtable.CSDIString.0
mov dword [esp + 0x170], 7
mov dword [esp + 0x16c], ebx
mov word [esp + 0x15c], cx
mov byte [esp + 0x748], 1
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0x158]
push eax
call edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x90]
push ecx
call fcn.00408b30
lea esi, [esp + 0xb8]
lea edx, [esp + 0x158]
mov byte [esp + 0x748], 2
call fcn.00404e60
lea ecx, [esp + 0x8c]
mov edx, eax
mov byte [esp + 0x748], 3
call fcn.00419570
mov byte [esp + 0x748], 2
cmp dword [esp + 0xcc], 8
jb 0x40271c
mov edx, dword [esp + 0xb8]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
push 0x4d
push str.ESACreateScanSettingsCommand.cpp
lea ecx, [esp + 0x94]
call fcn.00403cc0
add esp, 8
cmp eax, ebx
jne 0x4027a9
push str.parDictInstalledDevices_is_NULL
mov edx, 0x4e
push str.ESACreateScanSettingsCommand.cpp
push str.CESACreateScanSettingsCommand::Execute
lea ecx, [edx - 0x49]
mov eax, 0x441928
call fcn.0040dee0
mov dword [esp + 0x30], 1
add esp, 0xc
lea ecx, [esp + 0x8c]
mov byte [esp + 0x748], 1
call fcn.004087f0
lea ecx, [esp + 0x158]
call fcn.00401050
mov dword [esp + 0x748], 0xffffffff
lea ecx, [esp + 0x1b4]
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
call fcn.00404f70
jmp 0x403689
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
lea esi, [esp + 0x30]
call fcn.00403e70
lea eax, [esp + 0x14]
lea esi, [esp + 0x54]
call fcn.00403eb0
jmp 0x4027d0
mov eax, dword [esp + 0x38]
cmp eax, dword [esp + 0x5c]
je 0x402a82
lea edx, [esp + 0x30]
call fcn.00403ef0
lea ecx, [esp + 0x474]
push ecx
mov esi, eax
call fcn.00404ea0
mov dword [esp + 0x474], 0x431db8
mov byte [esp + 0x5cc], bl
mov ebx, esi
lea ecx, [esp + 0x474]
mov byte [esp + 0x748], 4
call fcn.00405e20
lea esi, [esp + 0x13c]
mov edx, edi
call fcn.004092c0
mov byte [esp + 0x748], 5
mov ebx, dword [esp + 0x18]
or ebx, 1
cmp dword [eax + 0x10], 0
mov dword [esp + 0x18], ebx
je 0x4028c1
lea edx, [esp + 0x474]
push edx
lea esi, [esp + 0xd8]
call fcn.00404df0
mov dword [esp + 0x14], eax
mov dword [esp + 0x748], 6
or ebx, 2
lea esi, [esp + 0x198]
mov edx, edi
mov dword [esp + 0x18], ebx
call fcn.004092c0
mov ecx, eax
mov dword [esp + 0x748], 7
mov eax, dword [esp + 0x14]
or ebx, 4
cmp byte [eax], 0
mov dword [esp + 0x18], ebx
je 0x402b34
mov edi, dword [eax + 0x14]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x4028ac
mov eax, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call fcn.004010f0
test eax, eax
je 0x402961
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0xb8]
mov edx, edi
call fcn.004092f0
mov dword [esp + 0x748], 9
or ebx, 8
cmp dword [eax + 0x10], 0
mov dword [esp + 0x18], ebx
je 0x402970
lea ecx, [esp + 0x474]
push ecx
lea esi, [esp + 0x104]
call fcn.00404d80
mov dword [esp + 0x14], eax
mov dword [esp + 0x748], 0xa
or ebx, 0x10
lea esi, [esp + 0x120]
mov edx, edi
mov dword [esp + 0x18], ebx
call fcn.004092f0
mov ecx, eax
mov dword [esp + 0x748], 0xb
mov edx, dword [esp + 0x14]
or ebx, 0x20
cmp byte [edx], 0
mov dword [esp + 0x18], ebx
je 0x402b68
mov eax, edx
mov edi, dword [eax + 0x14]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x402954
mov eax, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call fcn.004010f0
test eax, eax
jne 0x40296c
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x14], 1
jmp 0x402975
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x14], 0
test bl, 0x20
je 0x40298d
and ebx, 0xffffffdf
lea esi, [esp + 0x120]
mov dword [esp + 0x18], ebx
call fcn.004016b0
test bl, 0x10
je 0x4029a5
and ebx, 0xffffffef
lea esi, [esp + 0x100]
mov dword [esp + 0x18], ebx
call fcn.00408d60
test bl, 8
je 0x4029bd
and ebx, 0xfffffff7
lea esi, [esp + 0xb8]
mov dword [esp + 0x18], ebx
call fcn.004016b0
test bl, 4
je 0x4029d5
and ebx, 0xfffffffb
lea esi, [esp + 0x198]
mov dword [esp + 0x18], ebx
call fcn.004016b0
test bl, 2
je 0x4029ed
and ebx, 0xfffffffd
lea esi, [esp + 0xd4]
mov dword [esp + 0x18], ebx
call fcn.00408d60
mov dword [esp + 0x748], 4
test bl, 1
je 0x402a10
and ebx, 0xfffffffe
lea esi, [esp + 0x13c]
mov dword [esp + 0x18], ebx
call fcn.004016b0
cmp byte [esp + 0x14], 0
jne 0x402a41
mov byte [esp + 0x748], 2
lea ecx, [esp + 0x474]
mov dword [esp + 0x474], 0x431db8
call fcn.00404f70
inc dword [esp + 0x38]
xor ebx, ebx
jmp 0x4027d0
lea ebx, [esp + 0x474]
lea edi, [esp + 0x1b4]
call fcn.00404410
mov al, byte [esp + 0x5cc]
mov byte [esp + 0x748], 2
mov ecx, ebx
mov byte [esp + 0x30c], al
mov dword [esp + 0x474], 0x431db8
call fcn.00404f70
mov edi, dword [esp + 0x1c]
xor ebx, ebx
lea edx, [esp + 0xd4]
lea ecx, [esp + 0x1b4]
call fcn.004045c0
mov eax, dword [eax + 8]
dec eax
mov eax, dword [esp + 0xe4]
sete byte [esp + 0x14]
cmp eax, ebx
je 0x402ab3
push eax
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
lea edx, [esp + 0xd8]
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe8], ebx
mov dword [esp + 0xec], ebx
mov dword [esp + 0x20], edx
mov eax, edx
push eax
mov byte [esp + 0x74c], 0xd
call fcn.00408c50
mov byte [esp + 0x748], 2
mov ecx, dword [esp + 0xd8]
push ecx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
cmp byte [esp + 0x14], bl
je 0x402b9c
push str.cMatchedDevice_not_Found.
mov edx, 0x5b
push str.ESACreateScanSettingsCommand.cpp
push str.CESACreateScanSettingsCommand::Execute
lea ecx, [edx - 0x56]
mov eax, 0x441928
call fcn.0040dee0
mov dword [esp + 0x30], 0xa
jmp 0x40275f
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], 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 + 0x3c], vtable.boost::bad_optional_access.0
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x74c], 8
call fcn.00405dd0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x4c]
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 + 0x48], vtable.boost::bad_optional_access.0
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x74c], 0xc
call fcn.00405dd0
lea edx, [esp + 0x314]
push edx
call fcn.00404ea0
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
mov byte [esp + 0x46c], bl
xor eax, eax
mov dword [esp + method.CSDIString.virtual_0], vtable.CSDIString.0
mov dword [esp + 0x190], 7
mov dword [esp + 0x18c], ebx
mov word [esp + 0x17c], ax
mov byte [esp + 0x748], 0xf
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0x178]
push eax
call edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x64]
push ecx
call fcn.00408b30
lea esi, [esp + 0xb8]
lea edx, [esp + 0x178]
mov byte [esp + 0x748], 0x10
call fcn.00404e60
lea ecx, [esp + 0x60]
mov edx, eax
mov byte [esp + 0x748], 0x11
call fcn.00419570
mov byte [esp + 0x748], 0x10
cmp dword [esp + 0xcc], 8
jb 0x402c5d
mov edx, dword [esp + 0xb8]
push edx
call dword [sym.imp.mfc100u.dll_delete]
add esp, 4
push 0x63
push str.ESACreateScanSettingsCommand.cpp
lea ecx, [esp + 0x68]
call fcn.00403cc0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x402d26
push str.parDictDevices_is_NULL
mov edx, 0x64
push str.ESACreateScanSettingsCommand.cpp
push str.CESACreateScanSettingsCommand::Execute
lea ecx, [edx - 0x5f]
mov eax, 0x441928
call fcn.0040dee0
add esp, 0xc
lea ecx, [esp + 0x60]
mov dword [esp + 0x24], 1
mov byte [esp + 0x748], 0xf
call fcn.004087f0
lea ecx, [esp + 0x178]
call fcn.00401050
mov esi, vtable.CDVMDeviceInfo.0
mov byte [esp + 0x748], 2
lea ecx, [esp + 0x314]
mov dword [esp + 0x314], esi
call fcn.00404f70
lea ecx, [esp + 0x8c]
mov byte [esp + 0x748], 1
call fcn.004087f0
lea ecx, [esp + 0x158]
call fcn.00401050
mov dword [esp + 0x748], 0xffffffff
lea ecx, [esp + 0x1b4]
mov dword [esp + 0x1b4], esi
call fcn.00404f70
jmp 0x403689
lea eax, [esp + 0x5d4]
push eax
call fcn.00404ea0
mov dword [esp + 0x5d4], 0x431db8
mov byte [esp + 0x72c], bl
mov byte [esp + 0x748], 0x12
mov dword [esp + 0x14], esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x30]
call fcn.00403e70
lea eax, [esp + 0x14]
lea esi, [esp + 0x54]
call fcn.00403eb0
jmp 0x402d70
mov ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x5c]
je 0x402fed
lea edx, [esp + 0x30]
call fcn.00403ef0
mov ebx, eax
lea ecx, [esp + 0x5d4]
call fcn.00405e20
lea esi, [esp + 0xb8]
mov edx, edi
call fcn.004092c0
mov byte [esp + 0x748], 0x13
mov ebx, dword [esp + 0x18]
or ebx, 0x40
cmp dword [eax + 0x10], 0
mov dword [esp + 0x18], ebx
je 0x402e42
lea edx, [esp + 0x5d4]
push edx
lea esi, [esp + 0x104]
call fcn.00404df0
mov dword [esp + 0x14], eax
mov dword [esp + 0x748], 0x14
or ebx, 0x80
lea esi, [esp + 0x120]
mov edx, edi
mov dword [esp + 0x18], ebx
call fcn.004092c0
mov ecx, eax
mov dword [esp + 0x748], 0x15
mov eax, dword [esp + 0x14]
or ebx, 0x100
cmp byte [eax], 0
mov dword [esp + 0x18], ebx
je 0x40308d
mov edi, dword [eax + 0x14]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x402e2d
mov eax, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call fcn.004010f0
test eax, eax
je 0x402eeb
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0x198]
mov edx, edi
call fcn.004092f0
mov dword [esp + 0x748], 0x17
or ebx, 0x200
cmp dword [eax + 0x10], 0
mov dword [esp + 0x18], ebx
je 0x402efa
lea ecx, [esp + 0x5d4]
push ecx
lea esi, [esp + 0xd8]
call fcn.00404d80
mov dword [esp + 0x14], eax
mov dword [esp + 0x748], 0x18
or ebx, 0x400
lea esi, [esp + 0x13c]
mov edx, edi
mov dword [esp + 0x18], ebx
call fcn.004092f0
mov ecx, eax
mov dword [esp + 0x748], 0x19
mov edx, dword [esp + 0x14]
or ebx, 0x800
cmp byte [edx], 0
mov dword [esp + 0x18], ebx
je 0x4030c1
mov eax, edx
mov edi, dword [eax + 0x14]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x402ede
mov eax, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call fcn.004010f0
test eax, eax
jne 0x402ef6
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x14], 1
jmp 0x402eff
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x14], 0
test ebx, 0x800
je 0x402f1d
and ebx, 0xfffff7ff
lea esi, [esp + 0x13c]
mov dword [esp + 0x18], ebx
call fcn.004016b0
test ebx, 0x400
je 0x402f3b
and ebx, 0xfffffbff
lea esi, [esp + 0xd4]
mov dword [esp + 0x18], ebx
call fcn.00408d60
test ebx, 0x200
je 0x402f59
and ebx, 0xfffffdff
lea esi, [esp + 0x198]
mov dword [esp + 0x18], ebx
call fcn.004016b0
test ebx, 0x100
je 0x402f77
and ebx, 0xfffffeff
lea esi, [esp + 0x120]
mov dword [esp + 0x18], ebx
call fcn.004016b0
test bl, bl
jns 0x402f91
and ebx, 0xffffff7f
lea esi, [esp + 0x100]
mov dword [esp + 0x18], ebx
call fcn.00408d60
mov dword [esp + 0x748], 0x12
test bl, 0x40
je 0x402fb4
and ebx, 0xffffffbf
lea esi, [esp + 0xb8]
mov dword [esp + 0x18], ebx
call fcn.004016b0
cmp byte [esp + 0x14], 0
jne 0x402fc6
inc dword [esp + 0x38]
xor ebx, ebx
jmp 0x402d70
lea ebx, [esp + 0x5d4]
lea edi, [esp + 0x314]
call fcn.00404410
mov al, byte [esp + 0x72c]
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x46c], al
xor ebx, ebx
lea edx, [esp + 0xd4]
lea ecx, [esp + 0x314]
call fcn.004045c0
mov eax, dword [eax + 8]
dec eax
lea ecx, [esp + 0xd4]
sete byte [esp + 0x14]
call fcn.004087f0
cmp byte [esp + 0x14], bl
je 0x4030f5
push str.cFoundDevice_not_Found.
mov edx, 0x71
push str.ESACreateScanSettingsCommand.cpp
push str.CESACreateScanSettingsCommand::Execute
lea ecx, [edx - 0x6c]
mov eax, 0x441928
call fcn.0040dee0
mov byte [esp + 0x754], 0x10
mov esi, vtable.CDVMDeviceInfo.0
add esp, 0xc
lea ecx, [esp + 0x5d4]
mov dword [esp + 0x24], 0x1e
mov dword [esp + 0x5d4], esi
call fcn.00404f70
lea ecx, [esp + 0x60]
mov byte [esp + 0x748], 0xf
call fcn.004087f0
lea ecx, [esp + 0x178]
call fcn.00401050
jmp 0x402cc8
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x4c]
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 + 0x48], vtable.boost::bad_optional_access.0
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x74c], 0x16
call fcn.00405dd0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x2c], 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 + 0x3c], vtable.boost::bad_optional_access.0
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x74c], 0x1a
call fcn.00405dd0
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x318]
push edx
mov esi, eax
call fcn.00404550
mov byte [esp + 0x748], 0x1b
cmp dword [eax + 0x14], 8
jb 0x403125
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
mov ecx, esi
call eax
lea esi, [esp + 0x13c]
call fcn.004016b0
mov byte [esp + 0x748], 0x10
mov esi, vtable.CDVMDeviceInfo.0
lea ecx, [esp + 0x5d4]
mov dword [esp + 0x5d4], esi
call fcn.00404f70
lea ecx, [esp + 0x60]
mov byte [esp + 0x748], 0xf
call fcn.004087f0
lea ecx, [esp + 0x178]
call fcn.00401050
mov byte [esp + 0x748], 2
lea ecx, [esp + 0x314]
mov dword [esp + 0x314], esi
call fcn.00404f70
lea ecx, [esp + 0x8c]
mov byte [esp + 0x748], 1
call fcn.004087f0
lea ecx, [esp + 0x158]
call fcn.00401050
mov dword [esp + 0x748], 0xffffffff
lea ecx, [esp + 0x1b4]
mov dword [esp + 0x1b4], 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 0x403218
push str.ScannerDriver_Open_Failed.
mov edx, 0x76
push str.ESACreateScanSettingsCommand.cpp
push str.CESACreateScanSettingsCommand::Execute
lea ecx, [edx - 0x71]
mov eax, 0x441928
call fcn.0040dee0
add esp, 0xc
mov dword [esp + 0x24], 0x1e
jmp 0x403689
mov dword [esp + 0x20], vtable.CES2TextFileIO.0
mov dword [esp + 0x748], 0x1c
xor ecx, ecx
mov dword [esp + 0xcc], 7
mov dword [esp + 0xc8], ebx
mov word [esp + 0xb8], cx
sub esp, 0x1c
mov byte [esp + 0x764], 0x1d
mov esi, esp
mov edx, edi
mov dword [esp + 0x44], esp
call fcn.00409320
lea ecx, [esp + 0xd4]
call fcn.00401750
cmp eax, ebx
je 0x40335a
cmp dword [esp + 0xc8], ebx
je 0x40335a
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x64]
push eax
call fcn.00408b30
mov eax, str.kDrvSerializedAllValues
lea ecx, [esp + 0x120]
mov byte [esp + 0x748], 0x1e
call fcn.00401f00
lea ecx, [esp + 0xb8]
lea esi, [esp + 0x13c]
mov byte [esp + 0x748], 0x1f
call fcn.00408220
push eax
lea ecx, [esp + 0x124]
lea esi, [esp + 0x64]
mov byte [esp + 0x74c], 0x20
call fcn.00407ea0
mov edi, eax
call fcn.00408250
lea esi, [esp + 0x13c]
call fcn.004016b0
lea esi, [esp + 0x120]
mov byte [esp + 0x748], 0x1e
call fcn.004016b0
lea edx, [esp + 0xb8]
lea ecx, [esp + 0x60]
call fcn.004193f0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
cmp dword [esp + 0xcc], 8
mov ecx, dword [esp + 0xb8]
jae 0x403336
lea ecx, [esp + 0xb8]
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x48]
push str.kDrvSerializedAllValues
call eax
lea ecx, [esp + 0x60]
mov byte [esp + 0x748], 0x1d
call fcn.004087f0
mov edi, dword [esp + 0x1c]
lea esi, [esp + 0xb8]
call fcn.004016b0
xor ecx, ecx
mov dword [esp + method.CSDIString.virtual_0], vtable.CSDIString.0
mov dword [esp + 0x118], 7
mov dword [esp + 0x114], ebx
mov word [esp + 0x104], cx
mov dword [esp + 0x748], 0x21
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
lea ecx, [esp + 0x100]
push ecx
push str.kDrvUIOnly
mov ecx, eax
call edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0xd8]
push ecx
call fcn.00408b30
lea esi, [esp + 0x13c]
lea edx, [esp + 0x100]
mov byte [esp + 0x748], 0x22
call fcn.00404e60
lea ecx, [esp + 0xd4]
mov edx, eax
mov byte [esp + 0x748], 0x23
call fcn.00419570
mov byte [esp + 0x748], 0x22
call fcn.004016b0
mov eax, str.kDrvUIOnly
lea ecx, [esp + 0x120]
mov dword [esp + 0x20], 1
call fcn.00401f00
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x124]
lea esi, [esp + 0xd8]
mov byte [esp + 0x74c], 0x24
call fcn.00403c90
mov esi, eax
call fcn.004087b0
lea esi, [esp + 0x120]
mov byte [esp + 0x748], 0x22
call fcn.004016b0
lea esi, [esp + 0xb8]
lea edx, [esp + 0x100]
call fcn.00404e60
mov edx, esi
lea ecx, [esp + 0xd4]
mov byte [esp + 0x748], 0x25
call fcn.004193f0
mov eax, dword [edi]
mov edx, dword [eax + 0x24]
mov ecx, edi
call edx
cmp dword [esp + 0xcc], 8
mov ecx, dword [esp + 0xb8]
jae 0x4034a0
mov ecx, esi
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x48]
push str.kDrvUIOnly
call eax
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 + 0x3c]
call eax
cmp eax, ebx
je 0x403527
push str.ScannerDriver_ShowUI_Failed.
push str.ESACreateScanSettingsCommand.cpp
push str.CESACreateScanSettingsCommand::Execute
mov edx, 0x90
mov ecx, 5
mov eax, 0x441928
call fcn.0040dee0
add esp, 0xc
lea esi, [esp + 0xb8]
call fcn.004016b0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x748], 0x21
call fcn.004087f0
lea ecx, [esp + 0x100]
mov dword [esp + 0x748], 0xffffffff
call fcn.00401050
jmp 0x403689
mov edx, dword [edi]
mov eax, dword [edx + 0x24]
mov ecx, edi
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
lea ecx, [esp + 0x100]
push ecx
push str.kDrvUIOnly
mov ecx, eax
call edx
lea esi, [esp + 0x13c]
lea edx, [esp + 0x100]
call fcn.00404e60
lea ecx, [esp + 0xd4]
mov edx, eax
mov byte [esp + 0x748], 0x26
call fcn.00419570
mov byte [esp + 0x748], 0x25
call fcn.004016b0
mov eax, str.kDrvUIOnly
lea ecx, [esp + 0x120]
mov dword [esp + 0x20], ebx
call fcn.00401f00
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x124]
lea esi, [esp + 0xd8]
mov byte [esp + 0x74c], 0x27
call fcn.00403c90
mov esi, eax
call fcn.004087b0
lea esi, [esp + 0x120]
mov byte [esp + 0x748], 0x25
call fcn.004016b0
lea esi, [esp + 0x198]
lea edx, [esp + 0x100]
call fcn.00404e60
mov edi, eax
lea esi, [esp + 0xb8]
mov byte [esp + 0x748], 0x28
call fcn.00408700
lea esi, [esp + 0x198]
mov byte [esp + 0x748], 0x25
call fcn.004016b0
lea edx, [esp + 0xb8]
lea ecx, [esp + 0xd4]
call fcn.004193f0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
cmp dword [esp + 0xcc], 8
mov ecx, dword [esp + 0xb8]
jae 0x40363f
lea ecx, [esp + 0xb8]
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x48]
push str.kDrvUIOnly
call eax
lea esi, [esp + 0xb8]
call fcn.004016b0
lea ecx, [esp + 0xd4]
mov byte [esp + 0x748], 0x21
call fcn.004087f0
lea ecx, [esp + 0x100]
mov dword [esp + 0x748], 0xffffffff
call fcn.00401050
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
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 + 0x740]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x728]
xor ecx, esp
call fcn.0042b091
mov esp, ebp
pop ebp
ret