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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ea77b
push eax
mov dword fs:[0], esp
sub esp, 0x21c
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 4]
push edi
test eax, eax
je 0x466382
mov ecx, dword [ebx + 0xc]
mov edi, dword [esp + 0x23c]
cmp edi, ecx
jg 0x46635d
mov eax, dword [ebx + 0x10]
mov ebp, dword [esp + 0x240]
cmp ebp, eax
jg 0x46635d
cmp edi, ecx
jne 0x465e96
cmp ebp, eax
jne 0x465e96
mov ecx, dword [esp + 0x244]
test ecx, ecx
je 0x465e8f
push 1
push 1
push 1
push ebx
call sym.EXP.EXE_public:_void___thiscall_CxImage::Copy_class_CxImage_const___bool__bool__bool_
mov al, 1
jmp 0x466384
push 0
lea ecx, [esp + 0x4c]
call sym.EXP.EXE_public:_void___thiscall_CxImage::constructor_unsigned_long_int_
push ebx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x238], 0
call sym.EXP.EXE_protected:_void___thiscall_CxImage::CopyInfo_class_CxImage_const__
mov ecx, ebx
call sym.EXP.EXE_public:_unsigned_long_int___thiscall_CxImage::GetType_void_const
push eax
xor eax, eax
mov ax, word [ebx + 0x16]
lea ecx, [esp + 0x4c]
push eax
push ebp
push edi
call sym.EXP.EXE_public:_void____thiscall_CxImage::Create_unsigned_long_int__unsigned_long_int__unsigned_long_int__unsigned_long_int_
push 0x100
mov ecx, ebx
call sym.EXP.EXE_public:_struct_tagRGBQUAD____thiscall_CxImage::GetPalette_void_const
push eax
lea ecx, [esp + 0x50]
call sym.EXP.EXE_public:_void___thiscall_CxImage::SetPalette_struct_tagRGBQUAD___unsigned_long_int_
lea ecx, [esp + 0x48]
call sym.EXP.EXE_public:_bool___thiscall_CxImage::IsValid_void_const
test al, al
jne 0x465f14
lea ecx, [esp + 0x48]
mov dword [esp + 0x234], 0xffffffff
mov dword [esp + 0x48], sym.EXP.EXE_const_CxImage::vftable
call sym.EXP.EXE_public:_bool___thiscall_CxImage::Destroy_void_
jmp 0x466382
mov ecx, ebx
call sym.EXP.EXE_public:_bool___thiscall_CxImage::AlphaIsValid_void_
test al, al
je 0x465f28
lea ecx, [esp + 0x48]
call sym.EXP.EXE_public:_void___thiscall_CxImage::AlphaCreate_void_
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [esp + 0x38], ecx
mov ecx, ebx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], 4
call sym.EXP.EXE_public:_bool___thiscall_CxImage::AlphaIsValid_void_
test al, al
je 0x465f51
mov dword [esp + 0x28], 5
mov esi, dword [esp + 0x28]
imul esi, edi
shl esi, 2
push esi
mov dword [esp + 0x44], esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x24], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, ebx
call sym.EXP.EXE_public:_bool___thiscall_CxImage::IsIndexed_void_const
test al, al
jne 0x466152
xor esi, esi
mov ecx, ebx
push esi
push esi
call sym.EXP.EXE_protected:_void____thiscall_CxImage::BlindGetPixelPointer_long_int__long_int_
push esi
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x2c], eax
call sym.EXP.EXE_protected:_void____thiscall_CxImage::BlindGetPixelPointer_long_int__long_int_
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
cmp eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], esi
jle 0x466312
mov dword [esp + 0x18], esi
jmp 0x465fd2
mov ebp, dword [esp + 0x240]
mov eax, dword [esp + 0x18]
cdq
idiv dword [esp + 0x1c]
mov dword [ebx + 0x144], eax
mov eax, dword [ebx + 0x148]
test eax, eax
jne 0x466312
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
add edx, ebp
xor ebp, ebp
push eax
push ebp
mov ecx, ebx
mov dword [esp + 0x18], edx
call sym.EXP.EXE_public:_unsigned_char____thiscall_CxImage::AlphaGetPointer_long_int__long_int_
mov ecx, dword [esp + 0x38]
test ecx, ecx
jle 0x466067
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x23c]
add ebp, edx
xor edx, edx
mov dl, byte [edi]
add dword [esi], edx
inc edi
xor edx, edx
mov dl, byte [edi]
add dword [esi + 4], edx
inc edi
xor edx, edx
mov dl, byte [edi]
add dword [esi + 8], edx
mov edx, dword [esi + 0xc]
inc edi
inc edx
test eax, eax
mov dword [esi + 0xc], edx
je 0x46604f
xor edx, edx
mov dl, byte [eax]
add dword [esi + 0x10], edx
inc eax
cmp ebp, ecx
jle 0x46605c
mov edx, dword [esp + 0x28]
sub ebp, ecx
lea esi, [esi + edx*4]
mov edx, dword [esp + 0x34]
dec edx
mov dword [esp + 0x34], edx
jne 0x46601c
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, ebp
jl 0x466124
mov edi, dword [esp + 0x3c]
mov esi, eax
mov eax, dword [esp + 0x2c]
sub esi, ebp
mov ecx, eax
inc eax
push ecx
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x50]
mov dword [esp + 0x34], eax
call sym.EXP.EXE_public:_unsigned_char____thiscall_CxImage::AlphaGetPointer_long_int__long_int_
mov ecx, eax
mov eax, dword [esp + 0x23c]
test eax, eax
jle 0x4660fe
mov edx, dword [esp + 0x28]
mov dword [esp + 0x34], eax
shl edx, 2
mov dword [esp + 0x44], edx
mov eax, dword [esi]
xor edx, edx
div dword [esi + 0xc]
xor edx, edx
inc edi
mov byte [edi - 1], al
mov eax, dword [esi + 4]
div dword [esi + 0xc]
xor edx, edx
inc edi
mov byte [edi - 1], al
mov eax, dword [esi + 8]
div dword [esi + 0xc]
inc edi
test ecx, ecx
mov byte [edi - 1], al
je 0x4660ed
mov eax, dword [esi + 0x10]
xor edx, edx
div dword [esi + 0xc]
inc ecx
mov byte [ecx - 1], al
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x34]
add esi, edx
dec eax
mov dword [esp + 0x34], eax
jne 0x4660ba
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x3c]
add ecx, eax
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebx + 0x30]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add edi, ecx
inc eax
add edx, 0x64
cmp eax, ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edx
jl 0x465fcb
jmp 0x466312
mov ecx, dword [esp + 0x1c]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
jle 0x466312
mov dword [esp + 0x24], eax
jmp 0x466179
mov ebp, dword [esp + 0x240]
mov eax, dword [esp + 0x24]
cdq
idiv dword [esp + 0x1c]
mov dword [ebx + 0x144], eax
mov eax, dword [ebx + 0x148]
test eax, eax
jne 0x466312
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x20]
add ecx, ebp
xor edi, edi
xor ebp, ebp
test eax, eax
mov dword [esp + 0x10], ecx
jle 0x466242
mov edx, dword [esp + 0x23c]
push 1
add edi, edx
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x4c]
push ebp
push eax
mov ecx, ebx
call sym.EXP.EXE_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColor_long_int__long_int__bool_
mov eax, dword [eax]
mov ecx, dword [esi]
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 4]
and eax, 0xff
add ecx, eax
mov eax, dword [esi + 8]
mov dword [esi], ecx
mov ecx, dword [esp + 0x2e]
and ecx, 0xff
add edx, ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 4], edx
mov edx, dword [esp + 0x2d]
and edx, 0xff
add eax, edx
inc ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [ebx + 0x1dc]
test eax, eax
je 0x466228
mov eax, dword [esp + 0x2f]
mov ecx, dword [esi + 0x10]
and eax, 0xff
add ecx, eax
mov dword [esi + 0x10], ecx
mov eax, dword [esp + 0x38]
cmp edi, eax
jle 0x466239
mov ecx, dword [esp + 0x28]
sub edi, eax
lea esi, [esi + ecx*4]
inc ebp
cmp ebp, eax
jl 0x4661b4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, edx
jl 0x4662f6
mov esi, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [esp + 0x23c]
sub ecx, edx
xor edi, edi
mov dword [esp + 0x10], ecx
test eax, eax
jle 0x4662da
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
xor edx, edx
mov ebp, dword [ebx + 0x1dc]
div ecx
xor edx, edx
mov byte [esp + 0x2c], al
mov eax, dword [esi + 4]
div ecx
xor edx, edx
mov byte [esp + 0x2e], al
mov eax, dword [esi + 8]
div ecx
test ebp, ebp
mov byte [esp + 0x2d], al
je 0x4662a5
mov eax, dword [esi + 0x10]
xor edx, edx
div ecx
test ebp, ebp
mov byte [esp + 0x2f], al
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
setne dl
push edx
push eax
push ecx
push edi
lea ecx, [esp + 0x58]
call sym.EXP.EXE_public:_void___thiscall_CxImage::SetPixelColor_long_int__long_int__struct_tagRGBQUAD__bool_
mov edx, dword [esp + 0x28]
lea eax, [edx*4]
add esi, eax
mov eax, dword [esp + 0x23c]
inc edi
cmp edi, eax
jl 0x46626b
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x20]
mov esi, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
inc dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
inc eax
add esi, 0x64
cmp eax, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], esi
jl 0x466172
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x248]
add esp, 4
test ecx, ecx
je 0x466331
lea edx, [esp + 0x48]
push edx
jmp 0x466338
lea eax, [esp + 0x48]
mov ecx, ebx
push eax
call sym.EXP.EXE_public:_bool___thiscall_CxImage::Transfer_class_CxImage__
lea ecx, [esp + 0x48]
mov dword [esp + 0x234], 0xffffffff
mov dword [esp + 0x48], sym.EXP.EXE_const_CxImage::vftable
call sym.EXP.EXE_public:_bool___thiscall_CxImage::Destroy_void_
mov al, 1
jmp 0x466384
mov edi, str.QIShrink_cant_enlarge_image
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebx + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor al, al
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x228
ret 0xc