Function at 0x409c50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x416299
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call dword [sym.imp.MibAccessUtil.dll_public:_void___thiscall_CMibAccess::constructor_void_]
xor edi, edi
mov dword [esp + 0x2c], edi
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::BeginWaitCursor
push edi
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.0040a0f0
lea ecx, [esp + 0x10]
call fcn.0041471a
mov dword [esp + 0x10], 0x418d1c
mov eax, dword [esp + 0x18]
mov byte [esp + 0x2c], 2
cmp eax, edi
mov ebp, eax
je 0x409cdf
test eax, eax
jle 0x409cd2
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x409ccd
mov edx, dword [ecx]
push 1
call dword [edx + 4]
inc edi
cmp edi, ebp
jl 0x409cbb
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CObArray::SetSize
call fcn.00402740
mov eax, dword [eax + 0xf4]
lea ecx, [esp + 0x10]
push ecx
push str.255.255.255.255
push eax
lea ecx, [esp + 0x18]
call dword [sym.imp.MibAccessUtil.dll_public:_enum_CMibAccess::kSearchResult___thiscall_CMibAccess::SearchDevice_char_const___char_const___class_CPdvLPRDeviceSet__]
test eax, eax
jne 0x409d9b
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::RestoreWaitCursor
mov dword [esp + 0x10], 0x418d1c
mov eax, dword [esp + 0x18]
mov byte [esp + 0x2c], 3
test eax, eax
mov edi, eax
je 0x409d55
xor esi, esi
test eax, eax
jle 0x409d48
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + esi*4]
test ecx, ecx
je 0x409d43
mov eax, dword [ecx]
push 1
call dword [eax + 4]
inc esi
cmp esi, edi
jl 0x409d31
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CObArray::SetSize
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CObArray::CObArray
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.MibAccessUtil.dll_public_virtual:_void___thiscall_CMibAccess::destructor_void_]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x409daf
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00409e80
mov edx, dword [esi + 0x130]
push 0
push 0
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x409dda
push 2
push 2
push 0
lea ecx, [esi + 0x110]
call sub.MFC42.DLL_CListCtrl::SetItemState
push 1
mov ecx, esi
call fcn.0040a0f0
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::RestoreWaitCursor
mov dword [esp + 0x10], 0x418d1c
mov eax, dword [esp + 0x18]
mov byte [esp + 0x2c], 4
test eax, eax
mov edi, eax
je 0x409e31
xor esi, esi
test eax, eax
jle 0x409e24
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x409e1f
mov edx, dword [ecx]
push 1
call dword [edx + 4]
inc esi
cmp esi, edi
jl 0x409e0d
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CObArray::SetSize
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CObArray::CObArray
mov byte [esp + 0x2c], 0
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC42.DLL_CCmdTarget::EndWaitCursor
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.MibAccessUtil.dll_public_virtual:_void___thiscall_CMibAccess::destructor_void_]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret