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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1019e128
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
push ebx
push esi
push edi
mov eax, dword [0x10218460]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [esp + 0x4c], esi
mov eax, dword [edi]
mov edx, dword [eax + 0x5c]
mov ecx, edi
call edx
cmp eax, 6
je 0x1007a779
mov eax, dword [edi]
mov edx, dword [eax + 0x5c]
mov ecx, edi
call edx
cmp eax, 7
je 0x1007a779
push str.eim_RGBByteImage::rescale__const_eim_Image__const_ets_IntRect__int32__int32__:_only_color_image_types_are_supported
lea eax, [esp + 0x50]
call fcn.100595b0
add esp, 4
push 0x102051a0
lea eax, [esp + 0x50]
push eax
call fcn.1017d044
mov edi, dword [ebp + 0x10]
mov eax, edi
call fcn.10048df0
test al, al
je 0x1007a7a1
mov edx, dword [ebx]
mov eax, dword [edx + 0x54]
push esi
push esi
mov ecx, ebx
call eax
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.10048eb0
jmp 0x1007abe4
lea eax, [esp + 0x90]
call fcn.10048eb0
mov dword [esp + 0xe8], esi
mov ecx, dword [ebx + 0xc]
cmp ecx, esi
je 0x1007a7c7
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
cmp eax, 6
je 0x1007a7d4
lea edx, [ebx + 8]
mov ecx, 6
call fcn.1007c320
mov eax, dword [ebx + 0xc]
cmp eax, esi
je 0x1007a7e4
add eax, 0xffffffe4
mov dword [esp + 0x40], eax
jmp 0x1007a7e8
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x40]
mov edx, dword [esi + 0x1c]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x90]
add esi, 0x1c
push edi
push eax
mov ecx, esi
call edx
mov eax, dword [edi + 0x18]
mov ecx, eax
sub ecx, dword [edi + 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
cmp ecx, eax
jle 0x1007a82a
push eax
lea eax, [ebx - 0x1c]
call fcn.10077b90
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0xa8], ecx
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x14], eax
sub eax, dword [edi + 0x10]
mov edi, dword [ebp + 0x18]
cmp eax, edi
jle 0x1007a851
push edi
lea eax, [ebx - 0x1c]
call fcn.10077d20
mov ecx, dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0xac], ecx
mov edx, dword [esi]
mov eax, dword [edx + 0x3c]
mov ecx, esi
call eax
cmp eax, dword [ebp + 0x14]
jne 0x1007a87b
mov edx, dword [esi]
mov eax, dword [edx + 0x40]
mov ecx, esi
call eax
cmp eax, edi
jne 0x1007a87b
mov ecx, ebx
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
push esi
call eax
jmp 0x1007abc7
mov edx, dword [esi]
mov eax, dword [edx + 0x3c]
mov ecx, esi
call eax
mov edx, dword [esi]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x40]
mov ecx, esi
call eax
fild dword [ebp + 0x14]
mov esi, eax
mov dword [esp + 0x48], esi
fidiv dword [esp + 0x28]
mov edx, dword [ebx]
mov eax, dword [ebp + 0x14]
mov edx, dword [edx + 0x54]
push edi
push eax
mov ecx, ebx
fstp dword [esp + 0x1c]
fild dword [ebp + 0x18]
fidiv dword [esp + 0x50]
fstp dword [esp + 0x20]
call edx
fld1
fld dword [esp + 0x14]
mov eax, dword [ebx - 0x18]
fcom st(1)
mov dword [esp + 0x54], eax
fnstsw ax
fld1
test ah, 5
jp 0x1007a8df
fld st(0)
fdivrp st(2)
fxch st(1)
fstp dword [esp + 0x34]
jmp 0x1007a915
fxch st(1)
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x1007a90d
mov ecx, dword [esp + 0x28]
mov edx, dword [ebp + 0x14]
add ecx, 0xffffffff
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
add edx, 0xffffffff
mov dword [esp + 0x14], edx
fidiv dword [esp + 0x14]
fstp dword [esp + 0x34]
jmp 0x1007a915
fxch st(1)
fst dword [esp + 0x34]
fxch st(1)
fld dword [esp + 0x18]
fcom st(2)
fnstsw ax
test ah, 5
jp 0x1007a92a
fdivr st(1)
fstp dword [esp + 0x44]
jmp 0x1007a957
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x1007a94f
add esi, 0xffffffff
mov dword [esp + 0x14], esi
fild dword [esp + 0x14]
lea eax, [edi - 1]
mov dword [esp + 0x14], eax
fidiv dword [esp + 0x14]
fstp dword [esp + 0x44]
jmp 0x1007a957
fxch st(1)
fst dword [esp + 0x44]
fxch st(1)
test edi, edi
fldz
fst dword [esp + 0x38]
jle 0x1007abfe
mov dword [esp + 0x14], edi
jmp 0x1007a96d
fxch st(2)
fld dword [esp + 0x38]
fld st(0)
call fcn.10189ea0
fld st(0)
fadd st(3)
mov esi, eax
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld st(0)
call fcn.10189ea0
cmp eax, esi
mov dword [esp + 0x18], eax
fisub dword [esp + 0x18]
fstp dword [esp + 0x24]
jne 0x1007a9a5
fxch st(1)
fst dword [esp + 0x24]
fxch st(1)
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jl 0x1007a9bf
add ecx, 0xffffffff
cmp esi, ecx
jl 0x1007a9bf
fxch st(3)
sub esi, 1
fst dword [esp + 0x24]
jmp 0x1007a9c1
fxch st(3)
cmp dword [ebp + 0x14], 0
fxch st(1)
fst dword [esp + 0x30]
jle 0x1007abaa
mov ebx, dword [esp + 0x28]
fstp st(3)
fld dword [esp + 0x24]
mov edx, dword [ebp + 0x14]
mov edi, esi
fsubr st(2)
imul edi, ebx
fstp dword [esp + 0x4c]
lea ecx, [ebx + ebx*2]
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x18], edx
jmp 0x1007aa0e
mov edi, dword [esp + 0x60]
fxch st(1)
mov ebx, dword [esp + 0x28]
fxch st(2)
fxch st(1)
fld dword [esp + 0x30]
fld st(0)
call fcn.10189ea0
fadd st(2)
mov esi, eax
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fld st(0)
call fcn.10189ea0
cmp eax, esi
mov dword [esp + 0x1c], eax
fisub dword [esp + 0x1c]
fstp dword [esp + 0x2c]
jne 0x1007aa44
fxch st(2)
fstp dword [esp + 0x2c]
jmp 0x1007aa46
fstp st(2)
cmp eax, ebx
jl 0x1007aa5c
add ebx, 0xffffffff
cmp esi, ebx
jl 0x1007aa5c
fxch st(1)
sub esi, 1
fstp dword [esp + 0x2c]
jmp 0x1007aa5e
fstp st(1)
fld dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x5c]
fld st(0)
lea ebx, [edi + esi]
fsubp st(2)
lea ebx, [ebx + ebx*2]
fxch st(1)
add ebx, dword [eax + 4]
fstp dword [esp + 0x1c]
lea esi, [esp + 0x66]
add ecx, ebx
push ecx
lea edi, [ebx + 3]
fstp dword [esp]
mov dword [esp + 0x40], ecx
call fcn.100777a0
fld dword [esp + 0x1c]
push ecx
lea esi, [esp + 0x6d]
fstp dword [esp]
mov edi, ebx
mov dword [esp + 0x5c], eax
call fcn.100777a0
mov edi, eax
mov eax, dword [esp + 0x58]
mov esi, eax
lea eax, [esp + 0x6f]
call fcn.10077720
mov ecx, eax
lea eax, [esp + 0x84]
call fcn.1014abc0
fld dword [esp + 0x2c]
mov ebx, dword [esp + 0x3c]
push ecx
lea edi, [ebx + 3]
fstp dword [esp]
lea esi, [esp + 0x79]
call fcn.100777a0
fld dword [esp + 0x1c]
push ecx
lea esi, [esp + 0x70]
fstp dword [esp]
mov edi, ebx
mov dword [esp + 0x40], eax
call fcn.100777a0
mov edi, eax
mov eax, dword [esp + 0x3c]
mov esi, eax
lea eax, [esp + 0x72]
call fcn.10077720
mov ecx, eax
lea eax, [esp + 0x78]
call fcn.1014abc0
fld dword [esp + 0x24]
mov eax, dword [esp + 0x54]
mov ebx, eax
add eax, 3
push ecx
mov dword [esp + 0x58], eax
fstp dword [esp]
lea eax, [esp + 0xd4]
lea ecx, [esp + 0x7c]
call fcn.10077680
fld dword [esp + 0x4c]
push ecx
mov esi, eax
fstp dword [esp]
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x88]
call fcn.10077680
mov edx, eax
mov ecx, esi
lea eax, [esp + 0xc4]
call fcn.10077660
mov edi, eax
lea esi, [esp + 0x21]
call fcn.100776a0
mov dl, byte [esp + 0x21]
mov al, byte [esp + 0x22]
mov byte [ebx], dl
sub dword [esp + 0x18], 1
fld dword [esp + 0x30]
fadd dword [esp + 0x34]
mov cl, byte [esp + 0x23]
mov byte [ebx + 1], al
mov byte [ebx + 2], cl
fstp dword [esp + 0x30]
fld1
fldz
fld1
jne 0x1007aa00
fld dword [esp + 0x38]
fxch st(3)
fxch st(2)
sub dword [esp + 0x14], 1
fld dword [esp + 0x44]
faddp st(4)
fxch st(3)
fstp dword [esp + 0x38]
jne 0x1007a96b
fstp st(1)
fstp st(0)
fstp st(0)
mov esi, dword [ebp + 8]
lea edi, [esp + 0x90]
mov eax, esi
call fcn.10048eb0
lea ecx, [esp + 0xb0]
call fcn.10049090
mov eax, esi
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
fstp st(1)
fstp st(1)
jmp 0x1007abc5