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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6797fec0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x12c]
mov dword [esp + 0x38], ecx
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPImageManagerIconHandle::IsEmpty_void_const
test eax, eax
je 0x678110d6
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x67810b95
cmp ebx, 0xffffffff
mov dword [esp + 0x28], 1
jne 0x67810b9d
mov dword [esp + 0x28], 0
lea ecx, [esp + 0x54]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPImageManagerIconHandle::constructor_void_
add esi, 0x30
xor edi, edi
push esi
lea ecx, [esp + 0x58]
mov dword [esp + 0xc4], edi
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPImageManagerIconHandle::CopyHandle_class_CMHPImageManagerIconHandle_const__
lea ecx, [esp + 0x54]
call sym.MfcHlpr520.dll_public:_int___thiscall_CMHPImageManagerIconHandle::IsAlpha_void_const
test eax, eax
jne 0x67810e95
lea eax, [esp + 0x40]
lea ecx, [esp + 0x54]
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 0x678110b4
mov ecx, dword [esp + 0x50]
push ecx
call sub.MFC42.DLL_CGdiObject::FromHandle
push eax
push edi
lea ecx, [esp + 0x80]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPCompatibleDC::constructor_class_CDC___class_CBitmap__
mov edx, dword [esp + 0x4c]
mov byte [esp + 0xc0], 1
push edx
call sub.MFC42.DLL_CGdiObject::FromHandle
push eax
push edi
lea ecx, [esp + 0xac]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPCompatibleDC::constructor_class_CDC___class_CBitmap__
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x8c]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x90]
test eax, eax
jle 0x67810e4a
mov eax, dword [esp + 0x94]
xor esi, esi
test eax, eax
jle 0x67810e3a
mov edx, dword [esp + 0xa8]
push esi
push edi
push edx
call dword [sym.imp.GDI32.dll_GetPixel]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x67810e2a
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x67810d9e
xor ecx, ecx
mov edx, eax
mov cl, ah
and eax, 0xff
and ecx, 0xff
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 8]
fild dword [esp + 0x10]
shr edx, 0x10
and edx, 0xff
fmul qword [0x67996168]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, ebx
shr eax, 0x10
fmul qword [0x67996160]
and eax, 0xff
shr ecx, 0x10
faddp st(1)
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
and ecx, 0xff
fmul qword [0x67996158]
faddp st(1)
fmul qword [0x67995b98]
fld qword [0x67995b80]
fsub st(1)
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul st(1)
fild dword [esp + 0x10]
fmul st(3)
faddp st(1)
call sub.MSVCRT.dll__ftol
xor edx, edx
xor ecx, ecx
mov dh, al
xor eax, eax
mov cl, byte [ebp + 9]
mov al, bh
and eax, 0xff
and ecx, 0xff
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fmul st(1)
fild dword [esp + 0x10]
mov ebx, edx
fmul st(3)
faddp st(1)
call sub.MSVCRT.dll__ftol
mov edx, dword [ebp + 0xc]
and edx, 0xff
mov bl, al
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
and eax, 0xff
mov dword [esp + 0x10], eax
fmul st(1)
fild dword [esp + 0x10]
shl ebx, 8
fmul st(3)
faddp st(1)
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x7c]
and eax, 0xff
or eax, ebx
push eax
push esi
fstp st(0)
push edi
push ecx
fstp st(0)
call dword [sym.imp.GDI32.dll_SetPixel]
mov ebx, dword [ebp + 0xc]
jmp 0x67810e2a
xor edx, edx
mov ecx, eax
mov dl, ah
and eax, 0xff
and edx, 0xff
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
shr ecx, 0x10
and ecx, 0xff
fmul qword [0x67996168]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
fmul qword [0x67996160]
faddp st(1)
fild dword [esp + 0x10]
fmul qword [0x67996158]
faddp st(1)
fst qword [esp + 0x2c]
fmul qword [0x67995b98]
fld qword [sym.MfcHlpr520.dll_double_CMHPImageManager::m_dDisabledBrightnessFactor]
call sub.MSVCRT.dll__CIpow
fmul qword [0x67995bb8]
call sub.MSVCRT.dll__ftol
and eax, 0xff
and eax, 0xff
mov edx, eax
shl edx, 8
or edx, eax
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x7c]
push edx
push esi
push edi
push eax
call dword [sym.imp.GDI32.dll_SetPixel]
mov eax, dword [esp + 0x94]
inc esi
cmp esi, eax
jl 0x67810c57
mov ecx, dword [esp + 0x90]
inc edi
cmp edi, ecx
jl 0x67810c4d
lea ecx, [esp + 0xa4]
call sym.MfcHlpr520.dll_public_virtual:_void___thiscall_CMHPCompatibleDC::destructor_void_
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 0
call sym.MfcHlpr520.dll_public_virtual:_void___thiscall_CMHPCompatibleDC::destructor_void_
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.USER32.dll_CreateIconIndirect]
push eax
lea ecx, [esp + 0x58]
call sym.MfcHlpr520.dll_public:_class_CMHPImageManagerIconHandle_const____thiscall_CMHPImageManagerIconHandle::operator_struct_HICON____const_
mov edx, dword [esp + 0x4c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call esi
mov eax, dword [esp + 0x50]
push eax
call esi
jmp 0x678110b4
lea ecx, [esp + 0x54]
call sym.MfcHlpr520.dll_public:_unsigned_char____thiscall_CMHPImageManagerIconHandle::PreMultiply_void_
test eax, eax
je 0x678110b4
lea ecx, [esp + 0x54]
call sym.MfcHlpr520.dll_public:_unsigned_char____thiscall_CMHPImageManagerIconHandle::PreMultiply_void_
lea ecx, [esp + 0x2c]
mov edi, eax
push ecx
lea ecx, [esp + 0x58]
call sym.MfcHlpr520.dll_public:_class_CSize___thiscall_CMHPImageManagerIconHandle::GetExtent_void_
mov eax, dword [esp + 0x30]
imul eax, dword [esp + 0x2c]
test eax, eax
jbe 0x678110b4
mov dword [esp + 0x10], eax
xor edx, edx
mov dl, byte [edi + 3]
mov esi, edx
test esi, esi
mov dword [esp + 0x3c], esi
je 0x678110a2
xor ecx, ecx
mov cl, byte [edi]
mov eax, ecx
shl eax, 8
sub eax, ecx
xor ecx, ecx
cdq
idiv esi
mov cl, byte [edi + 1]
mov dword [esp + 0x24], eax
mov eax, ecx
shl eax, 8
sub eax, ecx
xor ecx, ecx
cdq
idiv esi
mov cl, byte [edi + 2]
mov dword [esp + 0x20], eax
mov eax, ecx
shl eax, 8
sub eax, ecx
cdq
fild dword [esp + 0x20]
idiv esi
fmul qword [0x67996168]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
fild dword [esp + 0x14]
test eax, eax
fmul qword [0x67996158]
faddp st(1)
fild dword [esp + 0x24]
fmul qword [0x67996160]
faddp st(1)
je 0x67811004
mov ecx, dword [ebp + 8]
mov eax, ebx
fmul qword [0x67995b98]
fld qword [0x67995b80]
shr eax, 0x10
and eax, 0xff
fsub st(1)
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
shr ecx, 0x10
and ecx, 0xff
fmul st(1)
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul st(3)
faddp st(1)
call sub.MSVCRT.dll__ftol
xor edx, edx
and eax, 0xff
mov dl, bh
mov dword [esp + 0x24], eax
and edx, 0xff
xor eax, eax
mov al, byte [ebp + 9]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
and eax, 0xff
mov dword [esp + 0x14], eax
fmul st(1)
fild dword [esp + 0x14]
fmul st(3)
faddp st(1)
call sub.MSVCRT.dll__ftol
mov ecx, dword [ebp + 8]
and ebx, 0xff
mov dword [esp + 0x14], ebx
and ecx, 0xff
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
and eax, 0xff
mov dword [esp + 0x20], eax
fmul st(1)
fild dword [esp + 0x14]
fmul st(3)
faddp st(1)
call sub.MSVCRT.dll__ftol
fstp st(0)
and eax, 0xff
fstp st(0)
mov ebx, eax
jmp 0x67811049
fst qword [esp + 0x14]
fmul qword [0x67995b98]
fld qword [sym.MfcHlpr520.dll_double_CMHPImageManager::m_dDisabledBrightnessFactor]
call sub.MSVCRT.dll__CIpow
fmul qword [0x67995bb8]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x3c]
and eax, 0xff
mov ebx, eax
fdiv qword [sym.MfcHlpr520.dll_double_CMHPImageManager::m_dDisabledAlphaFactor]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call sub.MSVCRT.dll__ftol
and eax, 0xff
mov esi, eax
mov eax, dword [esp + 0x24]
imul ebx, esi
imul eax, esi
mov ecx, eax
mov eax, 0x80808081
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x20]
imul eax, esi
mov ecx, eax
mov eax, 0x80808081
mov byte [edi], dl
imul ecx
add edx, ecx
mov eax, 0x80808081
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov byte [edi + 1], dl
imul ebx
add edx, ebx
mov ebx, dword [ebp + 0xc]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
mov byte [edi + 2], dl
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x67810ed4
lea ecx, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x3c]
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPImageManagerIconHandle::CopyHandle_class_CMHPImageManagerIconHandle_const__
lea ecx, [esp + 0x54]
mov dword [esp + 0xc0], 0xffffffff
call sym.MfcHlpr520.dll_public:_void___thiscall_CMHPImageManagerIconHandle::destructor_void_
mov ecx, dword [esp + 0xb8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8