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

Disassembly:
push 0xffffffffffffffff
push 0x6797fea0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebp
mov ebp, ecx
mov dword [esp + 8], ebp
mov eax, dword [ebp + 0x50]
test eax, eax
je 0x67810b27
push ebx
push esi
push edi
push 0x1f
call sym.MfcHlpr520.dll_private:_static_class_CMHPColorManager____cdecl_CMHPColorManager::Instance_void_
mov ecx, eax
call sym.MfcHlpr520.dll_public:_unsigned_long_int___thiscall_CMHPColorManager::GetColor_int_const
mov ebx, eax
shr eax, 0x10
and eax, 0xff
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0x67995728]
call sub.MSVCRT.dll__ftol
xor ecx, ecx
xor edx, edx
mov cl, bh
mov dh, al
and ecx, 0xff
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov dword [esp + 0x10], edx
fmul qword [0x67995728]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x10]
and ebx, 0xff
mov dword [esp + 0x10], ebx
mov dl, al
fild dword [esp + 0x10]
shl edx, 8
mov dword [esp + 0x10], edx
fmul qword [0x67995728]
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x10]
and eax, 0xff
or edx, eax
lea ecx, [esp + 0x38]
mov ebx, edx
mov dword [esp + 0x10], ebx
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPImageManagerIconHandle::constructor_void_
xor edi, edi
mov ecx, ebp
mov dword [esp + 0xa4], edi
call sym.MfcHlpr520.dll_public:_class_CMHPImageManagerIconHandle____thiscall_CMHPImageManagerIcon::GetHotIcon_void_
push eax
lea ecx, [esp + 0x3c]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPImageManagerIconHandle::CopyHandle_class_CMHPImageManagerIconHandle_const__
lea ecx, [esp + 0x38]
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPImageManagerIconHandle::IsAlpha_void_const
test eax, eax
jne 0x67810a34
lea eax, [esp + 0x24]
lea ecx, [esp + 0x38]
push eax
call sym.MfcHlpr520.dll_public:_unsigned_short_int_const____thiscall_CMHPResourceManager::CMHPA2W::operator_unsigned_short_int_const__void_const
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x67810b03
mov ecx, dword [esp + 0x34]
push ecx
call sub.MFC42.DLL_CGdiObject::FromHandle
push eax
push edi
lea ecx, [esp + 0x7c]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPCompatibleDC::constructor_class_CDC___class_CBitmap__
mov edx, dword [esp + 0x30]
mov byte [esp + 0xa4], 1
push edx
call sub.MFC42.DLL_CGdiObject::FromHandle
push eax
push edi
lea ecx, [esp + 0x90]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPCompatibleDC::constructor_class_CDC___class_CBitmap__
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x5c]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp dword [esp + 0x60], edi
jle 0x678109e9
mov ebp, dword [sym.imp.GDI32.dll_GetPixel]
mov eax, dword [esp + 0x64]
xor esi, esi
test eax, eax
jle 0x678109dc
mov edx, dword [esp + 0x8c]
push esi
push edi
push edx
call ebp
test eax, eax
jne 0x678109d3
mov eax, dword [esp + 0x78]
push ebx
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x64]
inc esi
cmp esi, eax
jl 0x678109b5
mov ecx, dword [esp + 0x60]
inc edi
cmp edi, ecx
jl 0x678109af
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x88]
call sym.MfcHlpr520.dll_public_virtual:_void___thiscall_CMHPCompatibleDC::destructor_void_
lea ecx, [esp + 0x74]
mov byte [esp + 0xa4], 0
call sym.MfcHlpr520.dll_public_virtual:_void___thiscall_CMHPCompatibleDC::destructor_void_
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_CreateIconIndirect]
push eax
lea ecx, [esp + 0x3c]
call sym.MfcHlpr520.dll_public:_class_CMHPImageManagerIconHandle_const____thiscall_CMHPImageManagerIconHandle::operator_struct_HICON____const_
mov edx, dword [esp + 0x30]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call esi
mov eax, dword [esp + 0x34]
push eax
call esi
jmp 0x67810b03
lea ecx, [esp + 0x38]
call sym.MfcHlpr520.dll_public:_unsigned_char____thiscall_CMHPImageManagerIconHandle::PreMultiply_void_
test eax, eax
je 0x67810b03
lea ecx, [esp + 0x38]
call sym.MfcHlpr520.dll_public:_unsigned_char____thiscall_CMHPImageManagerIconHandle::PreMultiply_void_
lea ecx, [esp + 0x1c]
mov esi, eax
push ecx
lea ecx, [esp + 0x3c]
call sym.MfcHlpr520.dll_public:_class_CSize___thiscall_CMHPImageManagerIconHandle::GetExtent_void_
mov ecx, dword [esp + 0x20]
imul ecx, dword [esp + 0x1c]
cmp ecx, edi
jbe 0x67810b03
mov eax, dword [esp + 0x10]
xor edx, edx
mov dl, bh
mov ebp, ebx
mov ebx, edx
and ebp, 0xff
shr eax, 0x10
and ebx, 0xff
and eax, 0xff
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
xor eax, eax
mov ecx, ebp
mov al, byte [esi + 3]
add esi, 4
mov edi, eax
mov eax, 0x80808081
imul ecx, edi
imul ecx
add edx, ecx
mov eax, 0x80808081
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
imul ecx, edi
mov byte [esi - 4], dl
imul ecx
add edx, ecx
mov ecx, dword [esp + 0x18]
imul ecx, edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x80808081
mov byte [esi - 3], dl
imul ecx
add edx, ecx
mov eax, dword [esp + 0x10]
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
dec eax
mov byte [esi - 2], dl
mov dword [esp + 0x10], eax
jne 0x67810a97
mov ebp, dword [esp + 0x14]
lea edx, [esp + 0x38]
lea ecx, [ebp + 0x78]
push edx
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPImageManagerIconHandle::CopyHandle_class_CMHPImageManagerIconHandle_const__
lea ecx, [esp + 0x38]
mov dword [esp + 0xa4], 0xffffffff
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPImageManagerIconHandle::destructor_void_
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
pop ebp
mov dword fs:[0], ecx
add esp, 0x98
ret