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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101a1b18
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x10218460]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x5c]
xor ebx, ebx
mov dword [esp + 0x40], ebx
call edx
cmp eax, 9
je 0x10080023
push str.eim_SegmLCByteImage::rescale__const_eim_Image__const_ets_IntRect__int32__int32__:_only_color_image_types_are_supported
lea eax, [esp + 0x3c]
call fcn.100595b0
add esp, 4
push 0x102051a0
lea eax, [esp + 0x3c]
push eax
call fcn.1017d044
mov edi, dword [ebp + 0x10]
mov eax, edi
call fcn.10048df0
test al, al
je 0x1008004b
mov edx, dword [esi]
mov eax, dword [edx + 0x54]
push ebx
push ebx
mov ecx, esi
call eax
mov esi, dword [ebp + 8]
mov eax, esi
call fcn.10048eb0
jmp 0x100804cc
lea eax, [esp + 0x44]
call fcn.10048eb0
mov dword [esp + 0x78], ebx
mov ecx, dword [esi + 0x28]
cmp ecx, ebx
je 0x1008006b
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
cmp eax, 9
je 0x10080078
lea edx, [esi + 0x24]
mov ecx, 9
call fcn.1007c320
mov ebx, dword [esi + 0x28]
mov edx, dword [ebx]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x90]
push edi
push eax
mov ecx, ebx
mov dword [esp + 0x34], ebx
call edx
mov eax, dword [edi + 0x18]
mov ecx, eax
sub ecx, dword [edi + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x14]
cmp ecx, eax
jle 0x100800b5
push eax
mov eax, esi
call fcn.1007fb20
mov ecx, dword [esp + 0x38]
sub ecx, eax
mov dword [esp + 0x5c], ecx
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x38], eax
sub eax, dword [edi + 0x10]
mov edi, dword [ebp + 0x18]
cmp eax, edi
jle 0x100800d8
push edi
mov eax, esi
call fcn.1007fd60
mov ecx, dword [esp + 0x38]
sub ecx, eax
mov dword [esp + 0x60], ecx
mov edx, dword [ebx]
mov eax, dword [edx + 0x3c]
mov ecx, ebx
call eax
cmp eax, dword [ebp + 0x14]
jne 0x100800ff
mov edx, dword [ebx]
mov eax, dword [edx + 0x40]
mov ecx, ebx
call eax
cmp eax, edi
jne 0x100800ff
mov edi, ebx
call fcn.1007df70
jmp 0x100804b5
mov edx, dword [ebx]
mov eax, dword [edx + 0x3c]
mov ecx, ebx
call eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
mov ebx, eax
mov eax, dword [edx + 0x40]
mov dword [esp + 0x38], ebx
call eax
fild dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov edx, dword [esi]
fidiv dword [esp + 0x38]
mov eax, dword [ebp + 0x14]
mov edx, dword [edx + 0x54]
push edi
push eax
mov ecx, esi
fstp dword [esp + 0x40]
fild dword [ebp + 0x18]
fidiv dword [esp + 0x18]
fstp dword [esp + 0x3c]
call edx
fld1
fld dword [esp + 0x38]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 4]
fcom st(1)
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 4]
mov dword [esp + 0x18], eax
mov dword [esp + 0x30], ecx
fnstsw ax
fld1
test ah, 5
jp 0x10080172
fld st(0)
fdivrp st(2)
fxch st(1)
fstp dword [esp + 0x1c]
jmp 0x100801a4
fxch st(1)
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x1008019c
mov edx, dword [ebp + 0x14]
lea ecx, [ebx - 1]
mov dword [esp + 0x38], ecx
fild dword [esp + 0x38]
add edx, 0xffffffff
mov dword [esp + 0x38], edx
fidiv dword [esp + 0x38]
fstp dword [esp + 0x1c]
jmp 0x100801a4
fxch st(1)
fst dword [esp + 0x1c]
fxch st(1)
fld dword [esp + 0x34]
fcom st(2)
fnstsw ax
test ah, 5
jp 0x100801b9
fdivr st(1)
fstp dword [esp + 0x24]
jmp 0x100801ea
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x100801e2
mov eax, dword [esp + 0x10]
add eax, 0xffffffff
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
lea ecx, [edi - 1]
mov dword [esp + 0x38], ecx
fidiv dword [esp + 0x38]
fstp dword [esp + 0x24]
jmp 0x100801ea
fxch st(1)
fst dword [esp + 0x24]
fxch st(1)
test edi, edi
fldz
fst dword [esp + 0x28]
jle 0x100804e3
mov dword [esp + 0x38], edi
jmp 0x10080200
fxch st(2)
fld dword [esp + 0x28]
fld st(0)
call fcn.10189ea0
fld st(0)
fadd st(3)
mov esi, eax
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fld st(0)
call fcn.10189ea0
cmp eax, esi
mov dword [esp + 0x34], eax
fisub dword [esp + 0x34]
fstp dword [esp + 0x14]
jne 0x10080238
fxch st(1)
fst dword [esp + 0x14]
fxch st(1)
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jl 0x10080252
add ecx, 0xffffffff
cmp esi, ecx
jl 0x10080252
fxch st(3)
sub esi, 1
fst dword [esp + 0x14]
jmp 0x10080254
fxch st(3)
cmp dword [ebp + 0x14], 0
fxch st(1)
fst dword [esp + 0x20]
jle 0x10080498
mov edx, dword [ebp + 0x14]
fstp st(3)
mov edi, esi
fstp st(2)
fld dword [esp + 0x14]
imul edi, ebx
fld st(0)
fsubr st(2)
mov dword [esp + 0x40], edi
mov dword [esp + 0x34], edx
jmp 0x1008028a
fld1
mov edi, dword [esp + 0x40]
fxch st(3)
fld dword [esp + 0x20]
fld st(0)
call fcn.10189ea0
fadd st(3)
mov esi, eax
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld st(0)
call fcn.10189ea0
cmp eax, esi
mov dword [esp + 0x14], eax
fisub dword [esp + 0x14]
fstp dword [esp + 0x14]
jne 0x100802be
fldz
fstp dword [esp + 0x14]
cmp eax, ebx
jl 0x100802d4
lea eax, [ebx - 1]
cmp esi, eax
jl 0x100802d4
fxch st(3)
sub esi, 1
fstp dword [esp + 0x14]
jmp 0x100802d6
fstp st(3)
mov ecx, dword [esp + 0x2c]
fld dword [esp + 0x14]
mov edx, dword [ecx + 0xc]
fld st(0)
mov eax, dword [edx + 4]
fsubr st(3)
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + 4]
add eax, edi
add eax, esi
movzx ecx, byte [eax + ebx + 1]
mov dword [esp + 0x14], ecx
movzx ecx, byte [eax + 1]
fild dword [esp + 0x14]
add edi, esi
lea esi, [edx + edi*2]
movzx edx, byte [eax + ebx]
fmul st(2)
mov dword [esp + 0x14], edx
movzx edx, byte [eax]
fild dword [esp + 0x14]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fmul st(3)
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fmul st(3)
fild dword [esp + 0x14]
fmul st(3)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul st(6)
faddp st(1)
call fcn.10189ea0
test eax, 0xffffff00
je 0x10080367
xor ecx, ecx
test eax, eax
setle cl
sub ecx, 1
and ecx, 0xff
jmp 0x1008036a
movzx ecx, al
mov eax, dword [esp + 0x30]
mov byte [eax], cl
movzx ecx, byte [esi + ebx*2]
movzx edx, byte [esi + 2]
add eax, 1
mov dword [esp + 0x30], eax
movzx eax, byte [esi + ebx*2 + 2]
mov dword [esp + 0x14], eax
movzx eax, byte [esi]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
mov edi, dword [esp + 0x18]
fmul st(2)
add dword [esp + 0x18], 2
fild dword [esp + 0x14]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
mov dword [esp + 0x14], edx
fmul st(3)
fild dword [esp + 0x14]
mov dword [esp + 0x14], eax
fmul st(3)
fild dword [esp + 0x14]
fmul st(3)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul st(6)
faddp st(1)
call fcn.10189ea0
test eax, 0xffffff00
je 0x100803f0
xor ecx, ecx
test eax, eax
setle cl
sub ecx, 1
and ecx, 0xff
jmp 0x100803f3
movzx ecx, al
mov byte [edi], cl
movzx ecx, byte [esi + ebx*2 + 3]
movzx edx, byte [esi + ebx*2 + 1]
movzx eax, byte [esi + 3]
mov dword [esp + 0x14], ecx
movzx ecx, byte [esi + 1]
fild dword [esp + 0x14]
mov dword [esp + 0x14], edx
fmul st(2)
fild dword [esp + 0x14]
fmul st(2)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
mov dword [esp + 0x14], eax
fmul st(3)
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
fmulp st(3)
fild dword [esp + 0x14]
fmulp st(2)
fxch st(2)
faddp st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul st(4)
faddp st(1)
call fcn.10189ea0
test eax, 0xffffff00
je 0x10080469
xor ecx, ecx
test eax, eax
setle cl
sub ecx, 1
and ecx, 0xff
jmp 0x1008046c
movzx ecx, al
sub dword [esp + 0x34], 1
fld dword [esp + 0x20]
fadd dword [esp + 0x1c]
mov byte [edi + 1], cl
fstp dword [esp + 0x20]
jne 0x10080282
fstp st(0)
fstp st(1)
fld1
fldz
fld dword [esp + 0x28]
fxch st(3)
fxch st(2)
fxch st(1)
sub dword [esp + 0x38], 1
fld dword [esp + 0x24]
faddp st(4)
fxch st(3)
fstp dword [esp + 0x28]
jne 0x100801fe
fstp st(2)
fstp st(0)
fstp st(0)
mov esi, dword [ebp + 8]
lea edi, [esp + 0x44]
mov eax, esi
call fcn.10048eb0
lea ecx, [esp + 0x64]
call fcn.10049090
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
fstp st(0)
jmp 0x100804b1