Function at 0x40f040
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4113fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], 0
call sub.MFC71U.DLL_CDBVariant::CDBVariant
mov eax, dword [ebp + 0x20]
push 0
push 5
push 0x110a
push eax
mov byte [esp + 0x80], 1
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
test ebx, ebx
jne 0x40f0c2
lea ecx, [esp + 0x30]
mov byte [esp + 0x70], al
call fcn.0040fbf0
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret 4
push esi
push edi
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x3c]
call sub.MFC71U.DLL_CAsyncSocket::Attach
mov esi, dword [esp + 0x80]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetTextColor]
mov edx, dword [ebp + 0x20]
push 0xfffffffffffffff0
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esp + 0x20], eax
jmp 0x40f100
push 8
push ebx
mov ecx, ebp
call sub.MFC71U.DLL_CTabCtrl::GetItemState
push ebx
push 3
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x20]
push 0x110a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
mov ecx, ebp
mov edi, eax
call sub.MFC71U.DLL_CListBox::ItemFromPoint
test eax, eax
jne 0x40f136
test edi, edi
mov byte [esp + 0x13], al
jne 0x40f13b
mov byte [esp + 0x13], 1
test byte [esp + 0x18], 2
je 0x40f163
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call sub.MFC71U.DLL_CMenu::FromHandle
cmp ebp, eax
je 0x40f159
test byte [esp + 0x20], 0x20
je 0x40f163
mov byte [esp + 0x80], 1
jmp 0x40f16b
mov byte [esp + 0x80], 0
push 1
lea ecx, [esp + 0x2c]
push ecx
push ebx
mov ecx, ebp
call sub.MFC71U.DLL_CToolBar::GetItemRect
test eax, eax
je 0x40f38b
mov al, byte [esp + 0x80]
test al, al
je 0x40f1ad
push 0
lea edx, [esp + 0x4c]
push edx
push ebx
mov ecx, ebp
call sub.MFC71U.DLL_CToolBar::GetItemRect
push 0x779baa
lea eax, [esp + 0x4c]
push eax
mov ecx, esi
call sub.MFC71U.DLL_CDC::FillSolidRect
mov al, byte [esp + 0x13]
test al, al
jne 0x40f1c4
mov al, byte [esp + 0x80]
test al, al
je 0x40f266
mov edi, dword [esi]
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, esi
call dword [edi + 0x38]
mov al, byte [esp + 0x13]
test al, al
je 0x40f266
test byte [esp + 0x18], 0x20
lea edi, [ebp + 0x78]
jne 0x40f1ed
lea edi, [ebp + 0x70]
mov edx, dword [edi + 4]
lea ecx, [esp + 0x58]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edi, dword [edi + 4]
mov eax, dword [esp + 0x3c]
push edi
push eax
call sub.MFC71U.DLL_COleControl::SelectFontObject
push 0xe
mov edi, eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x40]
push edx
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x78]
push eax
mov eax, dword [esi + 4]
push edx
sub ecx, edx
mov edx, dword [esp + 0x4c]
push edx
sub ecx, 2
push ecx
push eax
call dword [sym.imp.MSIMG32.dll_TransparentBlt]
test edi, edi
jne 0x40f256
mov ecx, dword [esp + 0x3c]
push edi
push ecx
call sub.MFC71U.DLL_COleControl::SelectFontObject
jmp 0x40f298
mov edi, dword [edi + 4]
mov ecx, dword [esp + 0x3c]
push edi
push ecx
call sub.MFC71U.DLL_COleControl::SelectFontObject
jmp 0x40f298
mov edx, dword [ebp]
push ebx
mov ecx, ebp
call dword [edx + 0x144]
test eax, eax
je 0x40f298
mov ecx, dword [esp + 0x28]
mov edx, dword [esi + 4]
push 3
push 0
push 0
push 0x10
push 0x10
push eax
mov eax, dword [esp + 0x44]
push eax
add ecx, 0xffffffee
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawIconEx]
push ebx
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call sub.MFC71U.DLL_CListCtrl::GetItemText
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], 2
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x24]
mov byte [esp + 0x78], 1
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
mov al, byte [esp + 0x80]
inc edx
dec ecx
test al, al
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
je 0x40f34b
mov al, byte [esp + 0x13]
test al, al
jne 0x40f2f9
mov edi, dword [esi]
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, esi
call dword [edi + 0x38]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetBkColor]
mov edi, dword [esi]
push 0
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x88], eax
call dword [sym.imp.MFC71U.DLL_CHtmlView::GetLeft]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
mov ecx, esi
call dword [edi + 0x70]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x38]
mov eax, dword [esp + 0x80]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x34]
jmp 0x40f38b
mov edi, dword [esi]
push 0xe
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov ecx, esi
call dword [edi + 0x38]
mov edi, dword [esi]
push 0
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC71U.DLL_CHtmlView::GetLeft]
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
mov ecx, esi
call dword [edi + 0x70]
mov eax, dword [esp + 0x1c]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x38]
mov ecx, dword [ebp + 0x20]
push ebx
push 6
push 0x110a
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
test ebx, ebx
jne 0x40f100
lea ecx, [esp + 0x38]
mov byte [esp + 0x78], al
call fcn.0040fbf0
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret 4