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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x433a09
mov eax, dword fs:[0]
push eax
sub esp, 0x3e8
mov eax, dword [0x442018]
xor eax, esp
mov dword [esp + 0x3e0], eax
push ebx
push esi
push edi
mov eax, dword [0x442018]
xor eax, esp
push eax
lea eax, [esp + 0x3f8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
lea ecx, [esp + 0x28c]
mov esi, edx
xor ebx, ebx
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0xac], esi
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x1b], 1
call fcn.00406cf0
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
mov byte [esp + 0x3e4], bl
mov dword [esp + 0x400], ebx
mov ecx, dword [edi + 0x178]
mov dword [esp + 0x28], ebx
mov edx, dword [ecx]
mov edx, dword [edx + 0x78]
lea eax, [esp + 0x28]
push eax
call edx
cmp eax, ebx
jne 0x40bb93
cmp dword [esp + 0x28], ebx
je 0x40bb93
mov eax, dword [esi + 0x10]
push str.LOCAL
lea edi, [ebx + 5]
mov ecx, esi
call fcn.0040a440
mov dword [esp + 0xb0], vtable.CSDIResultString.0
mov dword [esp + 0xc8], 7
mov dword [esp + 0xc4], ebx
test eax, eax
jne 0x40b614
mov word [esp + 0xb4], ax
mov byte [esp + 0x400], 1
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
lea eax, [esp + 0xb0]
push eax
call edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.0040a990
mov byte [esp + 0x400], 2
mov eax, dword [esp + 0xb4]
mov esi, 8
cmp dword [esp + 0xc8], esi
jae 0x40b188
lea eax, [esp + 0xb4]
lea ecx, [esp + 0xd0]
call fcn.00401980
lea ecx, [esp + 0x50]
lea edx, [esp + 0xd0]
mov byte [esp + 0x400], 3
call fcn.0041d2e0
mov byte [esp + 0x400], 2
cmp dword [esp + 0xe4], esi
jb 0x40b1ce
mov edx, dword [esp + 0xd0]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 0x43
push str.Runner.cpp
lea ecx, [esp + 0x58]
call fcn.00404c40
mov dword [esp + 0x24], eax
add esp, 8
lea eax, [esp + 0x1c]
lea esi, [esp + 0x2c]
call fcn.00405360
lea eax, [esp + 0x1c]
lea esi, [esp + 0x44]
call fcn.004052f0
nop
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x4c]
je 0x40b487
lea edx, [esp + 0x2c]
call fcn.00405330
lea ecx, [esp + 0x12c]
push ecx
mov esi, eax
call fcn.00406cf0
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
mov byte [esp + 0x284], bl
mov ebx, esi
lea ecx, [esp + 0x12c]
mov byte [esp + 0x400], 4
call fcn.00407cb0
lea eax, [esp + 0x11c]
lea ecx, [esp + 0x12c]
call fcn.0040d410
mov byte [esp + 0x400], 5
mov ebx, dword [esp + 0x18]
or ebx, 1
cmp byte [eax], 0
mov dword [esp + 0x18], ebx
je 0x40b2e5
lea eax, [esp + 0x124]
lea ecx, [esp + 0x12c]
call fcn.0040d410
mov dword [esp + 0x400], 6
or ebx, 2
cmp byte [eax], 0
mov dword [esp + 0x18], ebx
je 0x40b59f
cmp dword [eax + 4], 1
je 0x40b2e1
lea eax, [esp + 0xa8]
lea ecx, [esp + 0x12c]
call fcn.0040d410
mov dword [esp + 0x400], 8
or ebx, 4
cmp byte [eax], 0
mov dword [esp + 0x18], ebx
je 0x40b56b
cmp dword [eax + 4], 3
jne 0x40b2e5
mov al, 1
jmp 0x40b2e7
xor al, al
test bl, 4
je 0x40b305
and ebx, 0xfffffffb
cmp byte [esp + 0xa8], 0
mov dword [esp + 0x18], ebx
je 0x40b305
mov byte [esp + 0xa8], 0
test bl, 2
je 0x40b323
and ebx, 0xfffffffd
cmp byte [esp + 0x124], 0
mov dword [esp + 0x18], ebx
je 0x40b323
mov byte [esp + 0x124], 0
mov dword [esp + 0x400], 4
test bl, 1
je 0x40b34c
and ebx, 0xfffffffe
cmp byte [esp + 0x11c], 0
mov dword [esp + 0x18], ebx
je 0x40b34c
mov byte [esp + 0x11c], 0
test al, al
je 0x40b420
mov edx, dword [esp + 0x24]
cmp dword [edx + 0x10], 0
je 0x40b3d9
lea eax, [esp + 0x12c]
push eax
lea esi, [esp + 0xf4]
call fcn.00406c70
mov byte [esp + 0x400], 0xa
or ebx, 8
cmp byte [eax], 0
mov dword [esp + 0x18], ebx
je 0x40b3d9
lea ecx, [esp + 0x12c]
push ecx
lea esi, [esp + 0xd4]
call fcn.00406c70
mov dword [esp + 0x400], 0xb
or ebx, 0x10
cmp byte [eax], 0
mov dword [esp + 0x18], ebx
je 0x40b5d3
mov edi, dword [eax + 0x14]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x40b3c3
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [ecx + 0x10]
call fcn.0040a440
mov byte [esp + 0x1c], 1
test eax, eax
je 0x40b3de
mov byte [esp + 0x1c], 0
test bl, 0x10
je 0x40b3f6
and ebx, 0xffffffef
lea esi, [esp + 0xd0]
mov dword [esp + 0x18], ebx
call fcn.0040abc0
mov dword [esp + 0x400], 4
test bl, 8
je 0x40b419
and ebx, 0xfffffff7
lea esi, [esp + 0xf0]
mov dword [esp + 0x18], ebx
call fcn.0040abc0
cmp byte [esp + 0x1c], 0
jne 0x40b44a
mov byte [esp + 0x400], 2
lea ecx, [esp + 0x12c]
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
call fcn.00406dc0
inc dword [esp + 0x34]
xor ebx, ebx
jmp 0x40b200
lea ebx, [esp + 0x12c]
lea edi, [esp + 0x28c]
call fcn.0040c500
mov dl, byte [esp + 0x284]
mov byte [esp + 0x400], 2
mov ecx, ebx
mov byte [esp + 0x3e4], dl
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
call fcn.00406dc0
xor ebx, ebx
lea edx, [esp + 0xf0]
lea ecx, [esp + 0x28c]
call fcn.0040caf0
mov eax, dword [eax + 8]
dec eax
mov eax, dword [esp + 0x100]
sete byte [esp + 0x1c]
cmp eax, ebx
je 0x40b4b8
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea eax, [esp + 0xf4]
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0xa8], eax
mov ecx, eax
push ecx
mov byte [esp + 0x404], 0xd
call fcn.0040aab0
mov byte [esp + 0x400], 2
mov edx, dword [esp + 0xf4]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x1c], bl
je 0x40b607
push str.no_matched_device.
push str.Runner.cpp
push 0x445978
mov ecx, 0x4439c0
call dword [sym.imp.MSVCR100.dll_public:_char_const____thiscall_type_info::_name_internal_method_struct___type_info_node__const]
mov edx, 0x54
push eax
lea ecx, [edx - 0x4f]
mov eax, 0x445e70
call fcn.00418000
add esp, 0xc
lea ecx, [esp + 0x50]
mov byte [esp + 0x17], bl
mov byte [esp + 0x400], 1
call fcn.0040a8f0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x400], bl
call fcn.00401690
jmp 0x40bbc7
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
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 + 0x2c], vtable.boost::bad_optional_access.0
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x404], 9
call fcn.00407c20
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x30]
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 + 0x2c], vtable.boost::bad_optional_access.0
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x404], 7
call fcn.00407c20
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x3c]
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 + 0x38], vtable.boost::bad_optional_access.0
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x404], 0xc
call fcn.00407c20
mov byte [esp + 0x400], 1
jmp 0x40bacc
xor eax, eax
mov word [esp + 0xb4], ax
mov byte [esp + 0x400], 0xe
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov edx, dword [edx + 8]
lea eax, [esp + 0xb0]
push eax
call edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.0040a990
mov byte [esp + 0x400], 0xf
mov eax, dword [esp + 0xb4]
mov esi, 8
cmp dword [esp + 0xc8], esi
jae 0x40b66c
lea eax, [esp + 0xb4]
lea ecx, [esp + 0xd0]
call fcn.00401980
lea ecx, [esp + 0x50]
lea edx, [esp + 0xd0]
mov byte [esp + 0x400], 0x10
call fcn.0041d2e0
mov byte [esp + 0x400], 0xf
cmp dword [esp + 0xe4], esi
jb 0x40b6b2
mov edx, dword [esp + 0xd0]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 0x5d
push str.Runner.cpp
lea ecx, [esp + 0x58]
call fcn.00404c40
mov dword [esp + 0x24], eax
add esp, 8
lea eax, [esp + 0x1c]
lea esi, [esp + 0x2c]
call fcn.00405360
lea eax, [esp + 0x1c]
lea esi, [esp + 0x44]
call fcn.004052f0
jmp 0x40b6f0
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x4c]
je 0x40b864
lea edx, [esp + 0x2c]
call fcn.00405330
lea ecx, [esp + 0x12c]
push ecx
mov esi, eax
call fcn.00406cf0
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
mov byte [esp + 0x284], bl
mov ebx, esi
lea ecx, [esp + 0x12c]
mov byte [esp + 0x400], 0x11
call fcn.00407cb0
mov ebx, dword [esp + 0x24]
cmp dword [ebx + 0x10], 0
je 0x40b7bc
lea edx, [esp + 0x12c]
push edx
lea esi, [esp + 0xd4]
call fcn.00406c70
mov byte [esp + 0x400], 0x12
or dword [esp + 0x18], 0x20
cmp byte [eax], 0
je 0x40b7bc
lea eax, [esp + 0x12c]
push eax
lea esi, [esp + 0xf4]
call fcn.00406c70
mov dword [esp + 0x400], 0x13
or dword [esp + 0x18], 0x40
cmp byte [eax], 0
je 0x40b945
mov edi, dword [eax + 0x14]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x40b7a9
mov eax, dword [eax]
push eax
mov eax, dword [ebx + 0x10]
mov ecx, ebx
call fcn.0040a440
test eax, eax
jne 0x40b7bc
mov bl, 1
jmp 0x40b7be
xor bl, bl
test byte [esp + 0x18], 0x40
je 0x40b7d6
and dword [esp + 0x18], 0xffffffbf
lea esi, [esp + 0xf0]
call fcn.0040abc0
mov dword [esp + 0x400], 0x11
test byte [esp + 0x18], 0x20
je 0x40b7f9
and dword [esp + 0x18], 0xffffffdf
lea esi, [esp + 0xd0]
call fcn.0040abc0
test bl, bl
jne 0x40b827
mov byte [esp + 0x400], 0xf
lea ecx, [esp + 0x12c]
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
call fcn.00406dc0
inc dword [esp + 0x34]
xor ebx, ebx
jmp 0x40b6f0
lea ebx, [esp + 0x12c]
lea edi, [esp + 0x28c]
call fcn.0040c500
mov cl, byte [esp + 0x284]
mov byte [esp + 0x3e4], cl
mov byte [esp + 0x400], 0xf
mov ecx, ebx
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
call fcn.00406dc0
xor ebx, ebx
lea edx, [esp + 0xf0]
lea ecx, [esp + 0x28c]
call fcn.0040caf0
mov eax, dword [eax + 8]
dec eax
mov eax, dword [esp + 0x100]
sete byte [esp + 0x1c]
cmp eax, ebx
je 0x40b895
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [esp + 0xf4]
mov dword [esp + 0x100], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x20], ecx
mov edx, ecx
push edx
mov byte [esp + 0x404], 0x15
call fcn.0040aab0
mov byte [esp + 0x400], 0xf
mov eax, dword [esp + 0xf4]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp byte [esp + 0x1c], bl
je 0x40b979
push str.no_matched_device.
push str.Runner.cpp
push 0x445978
mov ecx, 0x4439c0
call dword [sym.imp.MSVCR100.dll_public:_char_const____thiscall_type_info::_name_internal_method_struct___type_info_node__const]
mov edx, 0x69
push eax
lea ecx, [edx - 0x64]
mov eax, 0x445e70
call fcn.00418000
add esp, 0xc
lea ecx, [esp + 0x50]
mov byte [esp + 0x17], bl
mov byte [esp + 0x400], 0xe
call fcn.0040a8f0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x400], bl
call fcn.00401690
jmp 0x40bbc7
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
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 + 0x38], vtable.boost::bad_optional_access.0
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x404], 0x14
call fcn.00407c20
lea ecx, [esp + 0x20]
mov eax, 2
push ecx
lea ecx, [esp + 0x290]
mov dword [esp + 0x294], eax
mov dword [esp + 0x24], eax
call fcn.0040ca10
mov esi, dword [esp + 0xa8]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x3c], esp
push ebx
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push esi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00401cf0
lea edi, [esp + 0x2a8]
call fcn.0040c8c0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0xc4], esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push ebx
mov word [ecx], ax
push esi
or eax, 0xffffffff
call fcn.00401cf0
call fcn.0040c6b0
lea edx, [esp + 0x7c]
mov ecx, edi
call fcn.0040caf0
push ebx
lea ecx, [esp + 0x80]
push ecx
mov ecx, edi
mov byte [esp + 0x408], 0x16
call fcn.004096f0
lea edx, [esp + 0xf0]
mov ecx, edi
call fcn.0040caf0
mov eax, dword [eax + 8]
dec eax
lea ecx, [esp + 0xf0]
sete byte [esp + 0x1c]
call fcn.0040a8f0
cmp byte [esp + 0x1c], bl
je 0x40bab3
push str.pcDevinfo_is_NULL.
push str.Runner.cpp
push 0x445978
mov ecx, 0x4439c0
call dword [sym.imp.MSVCR100.dll_public:_char_const____thiscall_type_info::_name_internal_method_struct___type_info_node__const]
mov edx, 0x71
push eax
lea ecx, [edx - 0x6c]
mov eax, 0x445e70
call fcn.00418000
add esp, 0xc
lea ecx, [esp + 0x7c]
mov byte [esp + 0x17], bl
mov byte [esp + 0x400], 0xf
call fcn.0040a8f0
lea ecx, [esp + 0x50]
mov byte [esp + 0x400], 0xe
call fcn.0040a8f0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x400], bl
call fcn.00401690
jmp 0x40bbc7
lea ecx, [esp + 0x7c]
mov byte [esp + 0x400], 0xf
call fcn.0040a8f0
mov byte [esp + 0x400], 0xe
lea ecx, [esp + 0x50]
call fcn.0040a8f0
lea ecx, [esp + 0xb0]
mov byte [esp + 0x400], bl
call fcn.00401690
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x290]
push eax
call fcn.0040c640
mov edi, 8
mov byte [esp + 0x400], 0x17
cmp dword [eax + 0x14], edi
jb 0x40bb11
mov eax, dword [eax]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x68]
call eax
mov byte [esp + 0x400], bl
mov esi, eax
cmp dword [esp + 0xe4], edi
jb 0x40bb40
mov ecx, dword [esp + 0xd0]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [esp + 0xe4], 7
mov dword [esp + 0xe0], ebx
mov word [esp + 0xd0], dx
cmp esi, ebx
je 0x40bbc7
push esi
push str.pcDevMgr__SetOneTimeDevice_failed._Err:__d_
push str.Runner.cpp
push 0x445978
mov ecx, 0x4439c0
call dword [sym.imp.MSVCR100.dll_public:_char_const____thiscall_type_info::_name_internal_method_struct___type_info_node__const]
mov edx, 0x74
push eax
lea ecx, [edx - 0x6f]
mov eax, 0x445e70
call fcn.00418000
add esp, 0x10
jmp 0x40bbc3
push str.ScannerDriver_GetISDIDeviceManager2___Failed.
push str.Runner.cpp
push 0x445978
mov ecx, 0x4439c0
call dword [sym.imp.MSVCR100.dll_public:_char_const____thiscall_type_info::_name_internal_method_struct___type_info_node__const]
mov edx, 0x3a
push eax
lea ecx, [edx - 0x35]
mov eax, 0x445e70
call fcn.00418000
add esp, 0xc
mov byte [esp + 0x17], bl
mov bl, byte [esp + 0x17]
movzx eax, bl
push eax
push str.ENUM_ESUCOMMAND_RETURN_eRet____d_
push str.Runner.cpp
push 0x445978
mov ecx, 0x4439c0
call dword [sym.imp.MSVCR100.dll_public:_char_const____thiscall_type_info::_name_internal_method_struct___type_info_node__const]
mov edx, 0x77
push eax
lea ecx, [edx - 0x76]
mov eax, 0x445e70
call fcn.00418000
mov dword [esp + 0x410], 0xffffffff
add esp, 0x10
lea ecx, [esp + 0x28c]
mov dword [esp + method.CDVMDeviceInfo.virtual_0], vtable.CDVMDeviceInfo.0
call fcn.00406dc0
mov al, bl
mov ecx, dword [esp + 0x3f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3e0]
xor ecx, esp
call fcn.0042ef46
mov esp, ebp
pop ebp
ret 4