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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ea5ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x4608e6
xor al, al
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
fld qword [0x4ec6e0]
call sub.MSVCRT.dll__CIacos
fld dword [ebp + 8]
fchs
fmulp st(1)
mov ecx, esi
fmul qword [0x4f2438]
fstp qword [esp + 0x1c]
call sym.EXP.EXE_public:_unsigned_long_int___thiscall_CxImage::GetWidth_void_const
mov edi, eax
mov ecx, esi
mov dword [esp + 0x4c], edi
call sym.EXP.EXE_public:_unsigned_long_int___thiscall_CxImage::GetHeight_void_const
fld qword [esp + 0x1c]
fcos
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
sub esp, 8
dec edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x4c], edi
fstp qword [esp + 0x5c]
fld qword [esp + 0x24]
fsin
fstp qword [esp + 0x6c]
fild dword [esp + 0x54]
fstp qword [esp + 0x24]
fld qword [esp + 0x24]
fmul qword [esp + 0x5c]
fsub qword [esp + 0x3c]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x24]
fmul qword [esp + 0x6c]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov edi, eax
fadd qword [esp + 0x44]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x20]
mov dword [esp + 0x58], eax
fst qword [esp + 0x24]
fmul qword [esp + 0x6c]
fstp qword [esp + 0x74]
fld qword [esp + 0x44]
fsub qword [esp + 0x74]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x24]
fmul qword [esp + 0x5c]
mov ebx, eax
fst qword [esp + 0x34]
fadd qword [esp + 0x3c]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x4c]
mov dword [esp + 0x48], eax
fst qword [esp + 0x24]
fmul qword [esp + 0x5c]
fsub qword [esp + 0x74]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x24]
fmul qword [esp + 0x6c]
mov dword [esp + 0x4c], eax
fadd qword [esp + 0x34]
fstp qword [esp]
call dword [sym.imp.MSVCRT.dll_floor]
add esp, 8
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x48], eax
xor eax, eax
test edi, edi
setg al
dec eax
mov ecx, dword [esp + 0x44]
and eax, edi
cmp ebx, ecx
mov edx, ebx
jl 0x460a3b
mov edx, ecx
cmp eax, edx
jge 0x460a4f
xor eax, eax
test edi, edi
setg al
dec eax
and eax, edi
mov dword [esp + 0x2c], eax
jmp 0x460a5b
cmp ebx, ecx
mov dword [esp + 0x2c], ebx
jl 0x460a5b
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x50]
xor edx, edx
test ecx, ecx
mov eax, dword [esp + 0x40]
setg dl
dec edx
and edx, ecx
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x48]
cmp eax, edx
jl 0x460a7b
mov eax, edx
cmp dword [esp + 0x4c], eax
jge 0x460a91
xor eax, eax
test ecx, ecx
setg al
dec eax
and eax, ecx
mov dword [esp + 0x30], eax
jmp 0x460aa5
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
cmp eax, edx
mov dword [esp + 0x30], eax
jl 0x460aa5
mov dword [esp + 0x30], edx
mov eax, dword [esp + 0x44]
xor edx, edx
test edi, edi
setl dl
dec edx
and edx, edi
cmp ebx, eax
jle 0x460ab9
mov eax, ebx
cmp edx, eax
jle 0x460acd
xor edx, edx
test edi, edi
setl dl
dec edx
and edx, edi
mov dword [esp + 0x34], edx
jmp 0x460add
mov eax, dword [esp + 0x44]
mov dword [esp + 0x34], ebx
cmp ebx, eax
jg 0x460add
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x48]
xor ebx, ebx
mov edi, eax
test ecx, ecx
setl bl
dec ebx
and ebx, ecx
cmp eax, edx
jg 0x460af7
mov edi, edx
cmp ebx, edi
jle 0x460b07
xor eax, eax
test ecx, ecx
setl al
dec eax
and eax, ecx
jmp 0x460b0d
cmp eax, edx
jg 0x460b0d
mov eax, edx
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
add eax, 2
lea edi, [ecx + 2]
push 0
mov dword [esp + 0x38], edi
sub edi, ebx
mov ebx, eax
lea ecx, [esp + 0x78]
sub ebx, edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x50], ebx
call sym.EXP.EXE_public:_void___thiscall_CxImage::constructor_unsigned_long_int_
push esi
lea ecx, [esp + 0x78]
mov dword [esp + 0x264], 0
call sym.EXP.EXE_protected:_void___thiscall_CxImage::CopyInfo_class_CxImage_const__
mov ecx, esi
call sym.EXP.EXE_public:_unsigned_long_int___thiscall_CxImage::GetType_void_const
push eax
mov ecx, esi
call sym.EXP.EXE_public:_unsigned_short_int___thiscall_CxImage::GetBpp_void_const
and eax, 0xffff
lea ecx, [esp + 0x78]
push eax
push ebx
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, esi
call sym.EXP.EXE_public:_struct_tagRGBQUAD____thiscall_CxImage::GetPalette_void_const
push eax
lea ecx, [esp + 0x7c]
call sym.EXP.EXE_public:_void___thiscall_CxImage::SetPalette_struct_tagRGBQUAD___unsigned_long_int_
mov ecx, esi
call sym.EXP.EXE_public:_bool___thiscall_CxImage::AlphaIsValid_void_
test al, al
je 0x460ba4
lea ecx, [esp + 0x74]
call sym.EXP.EXE_public:_void___thiscall_CxImage::AlphaCreate_void_
lea ecx, [esp + 0x74]
call sym.EXP.EXE_public:_void___thiscall_CxImage::AlphaClear_void_
mov eax, dword [esi + 0x28]
mov edx, dword [esp + 0x40]
xor ecx, ecx
cmp eax, ecx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
jne 0x460cd3
cmp eax, edx
jg 0x460dd1
xor eax, eax
mov dword [esp + 0x18], eax
cdq
idiv ebx
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x148]
test eax, eax
jne 0x460dd1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
xor edi, edi
cmp eax, ecx
mov dword [esp + 0x28], eax
jg 0x460ca5
fild dword [esp + 0x14]
fld st(0)
fmul qword [esp + 0x64]
fstp qword [esp + 0x6c]
fmul qword [esp + 0x54]
fstp qword [esp + 0x1c]
fild dword [esp + 0x28]
fld st(0)
fmul qword [esp + 0x54]
fadd qword [esp + 0x6c]
fsub qword [0x4ec6e8]
call sub.MSVCRT.dll__ftol
fmul qword [esp + 0x64]
mov ebx, eax
fsubr qword [esp + 0x1c]
fsub qword [0x4ec6e8]
call sub.MSVCRT.dll__ftol
push 0
push 1
push eax
lea edx, [esp + 0x50]
push ebx
push edx
mov ecx, esi
mov dword [esp + 0x74], eax
call sym.EXP.EXE_public:_struct_tagRGBQUAD___thiscall_CxImage::GetPixelColor_long_int__long_int__bool_
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push edi
lea ecx, [esp + 0x84]
call sym.EXP.EXE_public:_void___thiscall_CxImage::SetPixelColor_long_int__long_int__struct_tagRGBQUAD__bool_
mov edx, dword [esp + 0x60]
mov ecx, esi
push edx
push ebx
call sym.EXP.EXE_public:_unsigned_char___thiscall_CxImage::AlphaGet_long_int__long_int_
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x80]
call sym.EXP.EXE_public:_void___thiscall_CxImage::AlphaSet_long_int__long_int__unsigned_char_
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
inc eax
inc edi
cmp eax, ecx
mov dword [esp + 0x28], eax
jle 0x460c12
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
inc ecx
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
add eax, 0x64
cmp ecx, edx
mov dword [esp + 0x18], eax
jle 0x460bcf
jmp 0x460dd1
cmp eax, edx
jg 0x460dd1
xor eax, eax
mov dword [esp + 0x18], eax
cdq
idiv ebx
mov dword [esi + 0x144], eax
mov eax, dword [esi + 0x148]
test eax, eax
jne 0x460dd1
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
xor edi, edi
cmp eax, ecx
mov dword [esp + 0x28], eax
jg 0x460da8
fild dword [esp + 0x14]
fld st(0)
fmul qword [esp + 0x64]
fstp qword [esp + 0x6c]
fmul qword [esp + 0x54]
fstp qword [esp + 0x1c]
fild dword [esp + 0x28]
fld st(0)
fmul qword [esp + 0x54]
fadd qword [esp + 0x6c]
fsub qword [0x4ec6e8]
call sub.MSVCRT.dll__ftol
fmul qword [esp + 0x64]
mov ebx, eax
fsubr qword [esp + 0x1c]
fsub qword [0x4ec6e8]
call sub.MSVCRT.dll__ftol
push eax
push ebx
mov ecx, esi
mov dword [esp + 0x68], eax
call sym.EXP.EXE_public:_unsigned_char___thiscall_CxImage::GetPixelIndex_long_int__long_int_
mov ecx, dword [esp + 0x10]
push eax
push ecx
push edi
lea ecx, [esp + 0x80]
call sym.EXP.EXE_public:_void___thiscall_CxImage::SetPixelIndex_long_int__long_int__unsigned_char_
mov edx, dword [esp + 0x60]
mov ecx, esi
push edx
push ebx
call sym.EXP.EXE_public:_unsigned_char___thiscall_CxImage::AlphaGet_long_int__long_int_
push eax
mov eax, dword [esp + 0x14]
push eax
push edi
lea ecx, [esp + 0x80]
call sym.EXP.EXE_public:_void___thiscall_CxImage::AlphaSet_long_int__long_int__unsigned_char_
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
inc eax
inc edi
cmp eax, ecx
mov dword [esp + 0x28], eax
jle 0x460d24
mov ebx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
inc ecx
inc eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
add eax, 0x64
cmp ecx, edx
mov dword [esp + 0x18], eax
jle 0x460ce1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x460ddf
lea edx, [esp + 0x74]
push edx
jmp 0x460de6
lea eax, [esp + 0x74]
mov ecx, esi
push eax
call sym.EXP.EXE_public:_bool___thiscall_CxImage::Transfer_class_CxImage__
lea ecx, [esp + 0x74]
mov dword [esp + 0x260], 0xffffffff
mov dword [esp + 0x74], sym.EXP.EXE_const_CxImage::vftable
call sym.EXP.EXE_public:_bool___thiscall_CxImage::Destroy_void_
mov ecx, dword [esp + 0x258]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8