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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1009472b
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 0x10015c82
mov ecx, dword [ebx + 0xc]
mov edi, dword [esp + 0x23c]
cmp edi, ecx
jg 0x10015c5d
mov eax, dword [ebx + 0x10]
mov ebp, dword [esp + 0x240]
cmp ebp, eax
jg 0x10015c5d
cmp edi, ecx
jne 0x10015796
cmp ebp, eax
jne 0x10015796
mov ecx, dword [esp + 0x244]
test ecx, ecx
je 0x1001578f
push 1
push 1
push 1
push ebx
call sym.YunImage.fne_public:_void___thiscall_CxImage::Copy_class_CxImage_const___bool__bool__bool_
mov al, 1
jmp 0x10015c84
push 0
lea ecx, [esp + 0x4c]
call sym.YunImage.fne_public:_void___thiscall_CxImage::constructor_unsigned_long_int_
push ebx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x238], 0
call sym.YunImage.fne_protected:_void___thiscall_CxImage::CopyInfo_class_CxImage_const__
mov ecx, ebx
call sym.YunImage.fne_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.YunImage.fne_public:_void____thiscall_CxImage::Create_unsigned_long_int__unsigned_long_int__unsigned_long_int__unsigned_long_int_
push 0x100
mov ecx, ebx
call sym.YunImage.fne_public:_struct_tagRGBQUAD____thiscall_CxImage::GetPalette_void_const
push eax
lea ecx, [esp + 0x50]
call sym.YunImage.fne_public:_void___thiscall_CxImage::SetPalette_struct_tagRGBQUAD___unsigned_long_int_
lea ecx, [esp + 0x48]
call sym.YunImage.fne_public:_bool___thiscall_CxImage::IsValid_void_const
test al, al
jne 0x10015814
lea ecx, [esp + 0x48]
mov dword [esp + 0x234], 0xffffffff
mov dword [esp + 0x48], sym.YunImage.fne_const_CxImage::vftable
call sym.YunImage.fne_public:_bool___thiscall_CxImage::Destroy_void_
jmp 0x10015c82
mov ecx, ebx
call sym.YunImage.fne_public:_bool___thiscall_CxImage::AlphaIsValid_void_
test al, al
je 0x10015828
lea ecx, [esp + 0x48]
call sym.YunImage.fne_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.YunImage.fne_public:_bool___thiscall_CxImage::AlphaIsValid_void_
test al, al
je 0x10015851
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.YunImage.fne_public:_bool___thiscall_CxImage::IsIndexed_void_const
test al, al
jne 0x10015a52
xor esi, esi
mov ecx, ebx
push esi
push esi
call sym.YunImage.fne_protected:_void____thiscall_CxImage::BlindGetPixelPointer_long_int__long_int_
push esi
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x2c], eax
call sym.YunImage.fne_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 0x10015c12
mov dword [esp + 0x18], esi
jmp 0x100158d2
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 0x10015c12
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.YunImage.fne_public:_unsigned_char____thiscall_CxImage::AlphaGetPointer_long_int__long_int_
mov ecx, dword [esp + 0x38]
test ecx, ecx
jle 0x10015967
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 0x1001594f
xor edx, edx
mov dl, byte [eax]
add dword [esi + 0x10], edx
inc eax
cmp ebp, ecx
jle 0x1001595c
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 0x1001591c
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, ebp
jl 0x10015a24
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.YunImage.fne_public:_unsigned_char____thiscall_CxImage::AlphaGetPointer_long_int__long_int_
mov ecx, eax
mov eax, dword [esp + 0x23c]
test eax, eax
jle 0x100159fe
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 0x100159ed
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 0x100159ba
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 0x100158cb
jmp 0x10015c12
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 0x10015c12
mov dword [esp + 0x24], eax
jmp 0x10015a79
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 0x10015c12
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 0x10015b42
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.YunImage.fne_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 0x10015b28
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 0x10015b39
mov ecx, dword [esp + 0x28]
sub edi, eax
lea esi, [esi + ecx*4]
inc ebp
cmp ebp, eax
jl 0x10015ab4
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
cmp eax, edx
jl 0x10015bf6
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 0x10015bda
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 0x10015ba5
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.YunImage.fne_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 0x10015b6b
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 0x10015a72
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x248]
add esp, 4
test ecx, ecx
je 0x10015c31
lea edx, [esp + 0x48]
push edx
jmp 0x10015c38
lea eax, [esp + 0x48]
mov ecx, ebx
push eax
call sym.YunImage.fne_public:_bool___thiscall_CxImage::Transfer_class_CxImage__
lea ecx, [esp + 0x48]
mov dword [esp + 0x234], 0xffffffff
mov dword [esp + 0x48], sym.YunImage.fne_const_CxImage::vftable
call sym.YunImage.fne_public:_bool___thiscall_CxImage::Destroy_void_
mov al, 1
jmp 0x10015c84
mov edi, 0x100c5fcc
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