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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0xb4
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
lea ecx, [eax - 1]
cmp ecx, 0x20
push edi
jge 0x100ec7c5
mov eax, 1
shl eax, cl
jmp 0x100ec7c8
or eax, 0xffffffff
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
test eax, eax
jge 0x100ec7e0
fadd qword [0x10139940]
cmp ecx, 0x20
fchs
fstp qword [esp + 0xb8]
jge 0x100ec7f8
mov eax, 1
shl eax, cl
dec eax
jmp 0x100ec7fb
or eax, 0xffffffff
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
test eax, eax
jge 0x100ec813
fadd qword [0x10139940]
movzx eax, word [esi + 8]
fstp qword [esp + 0xb0]
movzx ecx, word [esi + 0xc]
fnstcw word [esp + 0x30]
mov dword [esp + 0x38], eax
mov dword [esp + 0x74], ecx
movzx edx, word [esi + 0xa]
fild dword [esp + 0x38]
movzx eax, word [esi + 0xe]
fidiv dword [esp + 0x74]
mov dword [esp + 0x38], edx
movzx edi, word [esi + 0x20]
fst qword [esp + 0xa0]
fild dword [esp + 0x38]
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
movzx eax, word [esp + 0x30]
or eax, 0xc00
mov dword [esp + 0x38], eax
fdivp st(1)
fst qword [esp + 0x98]
fld1
fld st(0)
fdivrp st(3)
fldcw word [esp + 0x38]
fxch st(2)
fistp dword [esp + 0x38]
movzx eax, word [esp + 0x38]
mov dword [esp + 0x78], eax
fldcw word [esp + 0x30]
fdivp st(1)
fnstcw word [esp + 0x30]
movzx eax, word [esp + 0x30]
or eax, 0xc00
mov dword [esp + 0x38], eax
fldcw word [esp + 0x38]
fistp dword [esp + 0x38]
movzx eax, word [esp + 0x38]
mov dword [esp + 0x70], eax
movzx eax, word [esi + 0x22]
fldcw word [esp + 0x30]
imul eax, edi
mov dword [esp + 0x80], eax
lea eax, [edx - 1]
imul eax, ecx
mov dword [esp + 0x94], eax
mov eax, edx
imul eax, ecx
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100aeb73
add esp, 4
mov dword [esp + 0x68], eax
test eax, eax
jne 0x100ec991
mov edi, dword [0x10199a70]
mov ecx, 0x101b5bc0
call fcn.10035670
mov ebx, dword [0x101b5bbc]
mov ecx, 0x101b5bc0
call fcn.100356c0
test edi, ebx
je 0x100ec981
call fcn.10037680
mov edi, eax
lea ecx, [edi + 0x14]
call fcn.10035670
cmp dword [edi + 0xc], 0
je 0x100ec941
lea ecx, [edi + 0x10]
call fcn.10035670
mov edi, dword [edi + 4]
jmp 0x100ec944
mov edi, dword [edi + 8]
push str.ERROR:_cant_allocate_temporary_buffer_for_interpolation_scaling__
push edi
call fcn.10002d50
add esp, 8
mov edi, eax
push 0xa
mov ecx, edi
call fcn.10002f60
mov ecx, edi
call fcn.10002ba0
call fcn.10037680
mov edi, eax
cmp dword [edi + 0xc], 0
je 0x100ec979
lea ecx, [edi + 0x10]
call fcn.100356c0
lea ecx, [edi + 0x14]
call fcn.100356c0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, esi
call fcn.1004efa0
jmp 0x100ed1b7
cmp dword [esi + 4], 0
mov dword [esp + 0x38], 0
jle 0x100ed1b7
mov eax, dword [ebp + 0xc]
fld1
mov ecx, dword [ebp + 8]
fld qword [esp + 0x98]
fld qword [esp + 0xa0]
sub ecx, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0xac], ecx
movzx ecx, word [esi + 0x20]
imul ecx, dword [esi + 0x1c]
mov eax, dword [esp + 0x7c]
add ecx, dword [esi + 0x18]
mov edx, dword [esp + 0xac]
mov edx, dword [edx + eax]
lea ecx, [edx + ecx*2]
mov edx, dword [eax]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x74], eax
test eax, eax
je 0x100ed19a
movzx eax, word [esp + 0x78]
lea ecx, [eax + 1]
lea edx, [eax + eax]
mov eax, dword [esp + 0x68]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x90], edx
lea edx, [eax + ecx*2]
mov dword [esp + 0xa8], edx
movzx edx, word [esi + 0xa]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x3c], ecx
test dx, dx
je 0x100eca5d
mov di, word [eax]
mov word [ecx], di
movzx edi, word [esi + 0x20]
lea eax, [eax + edi*2]
movzx edi, word [esi + 0xc]
add edx, 0xffff
lea ecx, [ecx + edi*2]
test dx, dx
jne 0x100eca3e
mov eax, 1
cmp dword [esp + 0x84], eax
mov dword [esp + 0x40], eax
jle 0x100ecb08
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x6c]
add ebx, 2
fmul st(1)
mov dword [esp + 0x3c], ebx
fcom st(3)
fnstsw ax
test ah, 0x41
jne 0x100eca99
fstp st(0)
fld st(2)
movzx eax, word [esi + 0xa]
mov dword [esp + 0x30], eax
test ax, ax
je 0x100ecae9
movsx eax, word [edi]
movsx ecx, word [edi + 2]
sub ecx, eax
mov dword [esp + 0x64], ecx
mov dword [esp + 0x58], eax
fild dword [esp + 0x64]
fmul st(1)
fiadd dword [esp + 0x58]
call fcn.100b2760
mov word [ebx], ax
movzx eax, word [esi + 0xc]
movzx edx, word [esi + 0x20]
lea ebx, [ebx + eax*2]
mov eax, dword [esp + 0x30]
add eax, 0xffff
lea edi, [edi + edx*2]
mov dword [esp + 0x30], eax
test ax, ax
jne 0x100ecaa6
mov eax, dword [esp + 0x40]
fstp st(0)
inc eax
mov dword [esp + 0x40], eax
movzx eax, ax
cmp eax, dword [esp + 0x84]
mov dword [esp + 0x30], eax
jl 0x100eca77
mov eax, dword [esp + 0x78]
movzx ecx, word [esi + 0xc]
mov edi, dword [esp + 0x6c]
sub ecx, dword [esp + 0x90]
inc eax
movzx eax, ax
mov dword [esp + 0x40], eax
movzx eax, ax
add edi, 2
cmp eax, ecx
mov dword [esp + 0x44], 1
mov dword [esp + 0x64], edi
mov dword [esp + 0x30], eax
jge 0x100eccc5
fild dword [esp + 0x30]
movzx edx, word [esp + 0x44]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x34], edx
fmul st(1)
add ebx, 2
mov dword [esp + 0x3c], ebx
fst qword [esp + 0x48]
fild dword [esp + 0x34]
fsubr st(1)
fst qword [esp + 0x88]
fcom st(4)
fnstsw ax
test ah, 0x41
jne 0x100ecb80
fstp st(0)
fld st(3)
fst qword [esp + 0x88]
movzx eax, word [esi + 0xa]
mov dword [esp + 0x30], eax
test ax, ax
je 0x100ecc98
fstp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
jmp 0x100ecba7
fld qword [esp + 0x88]
fld qword [esp + 0xb0]
movsx eax, word [edi + 4]
movsx ecx, word [edi + 2]
movsx edx, word [edi]
sub esp, 0x38
mov dword [esp + 0x90], eax
movsx eax, word [edi - 2]
fstp qword [esp + 0x30]
fld qword [esp + 0xf0]
fstp qword [esp + 0x28]
fstp qword [esp + 0x20]
fild dword [esp + 0x90]
mov dword [esp + 0x90], ecx
fstp qword [esp + 0x18]
fild dword [esp + 0x90]
mov dword [esp + 0x90], edx
fstp qword [esp + 0x10]
fild dword [esp + 0x90]
mov dword [esp + 0x90], eax
fstp qword [esp + 8]
fild dword [esp + 0x90]
fstp qword [esp]
call fcn.100d7460
add esp, 0x38
call fcn.100b2760
mov word [ebx], ax
mov eax, dword [esp + 0x30]
movzx ecx, word [esi + 0x20]
movzx edx, word [esi + 0xc]
add eax, 0xffff
lea edi, [edi + ecx*2]
lea ebx, [ebx + edx*2]
mov dword [esp + 0x30], eax
test ax, ax
jne 0x100ecba0
fld qword [esp + 0x48]
fld1
fld qword [esp + 0x98]
fld qword [esp + 0xa0]
fxch st(2)
fxch st(3)
fxch st(1)
fxch st(2)
fxch st(1)
movzx ecx, word [esi + 8]
mov eax, dword [esp + 0x34]
sub ecx, 3
cmp eax, ecx
jge 0x100ecc9c
inc eax
mov dword [esp + 0x58], eax
fild dword [esp + 0x58]
fcompp
fnstsw ax
test ah, 0x41
jp 0x100ecc9e
add dword [esp + 0x64], 2
inc dword [esp + 0x44]
jmp 0x100ecc9e
fstp st(0)
jmp 0x100ecc6c
fstp st(0)
mov eax, dword [esp + 0x40]
movzx edx, word [esi + 0xc]
sub edx, dword [esp + 0x90]
mov edi, dword [esp + 0x64]
inc eax
mov dword [esp + 0x40], eax
movzx eax, ax
cmp eax, edx
mov dword [esp + 0x30], eax
jl 0x100ecb41
movzx eax, word [esi + 0xc]
mov ecx, dword [esp + 0x78]
add ecx, ecx
mov edx, eax
sub edx, ecx
movzx ecx, dx
movzx eax, ax
mov dword [esp + 0x40], ecx
movzx ecx, cx
dec eax
cmp ecx, eax
mov dword [esp + 0x30], ecx
jge 0x100ecdbb
movzx ecx, word [esp + 0x44]
fild dword [esp + 0x30]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x34], ecx
fmul st(1)
add ebx, 2
mov dword [esp + 0x3c], ebx
fild dword [esp + 0x34]
fsubr st(1)
fcom st(4)
fnstsw ax
test ah, 0x41
jne 0x100ecd1a
fstp st(0)
fld st(3)
movzx eax, word [esi + 0xa]
mov dword [esp + 0x30], eax
test ax, ax
je 0x100ecd6a
movsx eax, word [edi]
movsx edx, word [edi + 2]
sub edx, eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x58], eax
fild dword [esp + 0x48]
fmul st(1)
fiadd dword [esp + 0x58]
call fcn.100b2760
mov word [ebx], ax
movzx eax, word [esi + 0x20]
movzx ecx, word [esi + 0xc]
lea edi, [edi + eax*2]
mov eax, dword [esp + 0x30]
add eax, 0xffff
lea ebx, [ebx + ecx*2]
mov dword [esp + 0x30], eax
test ax, ax
jne 0x100ecd27
movzx edx, word [esi + 8]
fstp st(0)
mov eax, dword [esp + 0x34]
sub edx, 2
cmp eax, edx
jge 0x100ecd98
inc eax
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fcompp
fnstsw ax
test ah, 0x41
jp 0x100ecd9a
add dword [esp + 0x64], 2
inc dword [esp + 0x44]
jmp 0x100ecd9a
fstp st(0)
mov eax, dword [esp + 0x40]
movzx ecx, word [esi + 0xc]
mov edi, dword [esp + 0x64]
inc eax
mov dword [esp + 0x40], eax
movzx eax, ax
dec ecx
cmp eax, ecx
mov dword [esp + 0x30], eax
jl 0x100ecced
movzx edx, word [esi + 0xc]
mov edi, dword [esp + 0x68]
movzx eax, word [esi + 8]
lea ecx, [edi + edx*2 - 2]
mov edx, dword [esp + 0x6c]
lea eax, [edx + eax*2 - 2]
movzx edx, word [esi + 0xa]
test dx, dx
je 0x100ecdfb
mov bx, word [eax]
mov word [ecx], bx
movzx ebx, word [esi + 0x20]
lea eax, [eax + ebx*2]
movzx ebx, word [esi + 0xc]
add edx, 0xffff
lea ecx, [ecx + ebx*2]
test dx, dx
jne 0x100ecddc
movzx eax, word [esi + 0xc]
mov ecx, edi
test ax, ax
je 0x100ece24
mov edx, dword [esp + 0x54]
mov di, word [ecx]
mov word [edx], di
add eax, 0xffff
add edx, 2
add ecx, 2
test ax, ax
jne 0x100ece0a
mov dword [esp + 0x54], edx
movzx eax, word [esp + 0x70]
lea ecx, [eax + 1]
cmp ecx, 1
mov dword [esp + 0x30], 1
jle 0x100ecec3
mov dword [esp + 0x34], 1
fild dword [esp + 0x34]
mov edi, dword [esp + 0x68]
fmul st(2)
fcom st(3)
fnstsw ax
test ah, 0x41
jne 0x100ece5c
fstp st(0)
fld st(2)
movzx ebx, word [esi + 0xc]
test bx, bx
je 0x100ecea5
movzx ecx, word [esi + 0xc]
movsx eax, word [edi]
movsx edx, word [edi + ecx*2]
sub edx, eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x58], eax
fild dword [esp + 0x48]
fmul st(1)
fiadd dword [esp + 0x58]
call fcn.100b2760
mov ecx, dword [esp + 0x54]
mov word [ecx], ax
add ecx, 2
add ebx, 0xffff
add edi, 2
mov dword [esp + 0x54], ecx
test bx, bx
jne 0x100ece65
mov eax, dword [esp + 0x30]
fstp st(0)
inc eax
movzx edx, ax
mov dword [esp + 0x30], eax
movzx eax, word [esp + 0x70]
lea ecx, [eax + 1]
cmp edx, ecx
mov dword [esp + 0x34], edx
jl 0x100ece45
movzx ecx, word [esi + 0xc]
mov edx, dword [esp + 0x68]
lea edi, [edx + ecx*2]
mov ecx, dword [esp + 0x70]
movzx edx, word [esi + 0xe]
inc ecx
movzx ecx, cx
mov dword [esp + 0x30], ecx
movzx ecx, cx
sub edx, eax
dec edx
cmp ecx, edx
mov dword [esp + 0x44], 1
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], ecx
jge 0x100ed083
fild dword [esp + 0x34]
movzx eax, word [esp + 0x44]
mov dword [esp + 0x34], eax
fmul st(2)
fst qword [esp + 0x58]
fild dword [esp + 0x34]
fsubr st(1)
fst qword [esp + 0x88]
fcom st(4)
fnstsw ax
test ah, 0x41
jne 0x100ecf30
fstp st(0)
fld st(3)
fst qword [esp + 0x88]
movzx ebx, word [esi + 0xc]
test bx, bx
je 0x100ed055
fstp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
jmp 0x100ecf57
fld qword [esp + 0x88]
movzx eax, word [esi + 0xc]
fld qword [esp + 0xb0]
movsx edx, word [edi + eax*4]
sub esp, 0x38
lea ecx, [eax + eax]
movsx eax, word [ecx + edi]
fstp qword [esp + 0x30]
fld qword [esp + 0xf0]
fstp qword [esp + 0x28]
mov dword [esp + 0x80], edx
movsx edx, word [edi]
fstp qword [esp + 0x20]
fild dword [esp + 0x80]
mov dword [esp + 0x80], eax
mov eax, edi
fstp qword [esp + 0x18]
sub eax, ecx
fild dword [esp + 0x80]
movsx ecx, word [eax]
fstp qword [esp + 0x10]
mov dword [esp + 0x80], edx
fild dword [esp + 0x80]
mov dword [esp + 0x80], ecx
fstp qword [esp + 8]
fild dword [esp + 0x80]
fstp qword [esp]
call fcn.100d7460
add esp, 0x38
call fcn.100b2760
mov ecx, dword [esp + 0x54]
mov word [ecx], ax
add ecx, 2
add ebx, 0xffff
add edi, 2
mov dword [esp + 0x54], ecx
test bx, bx
jne 0x100ecf50
fld qword [esp + 0x58]
fld1
fld qword [esp + 0x98]
fld qword [esp + 0xa0]
fxch st(2)
fxch st(3)
fxch st(1)
fxch st(2)
fxch st(1)
movzx edx, word [esi + 0xa]
mov eax, dword [esp + 0x34]
sub edx, 3
cmp eax, edx
jge 0x100ed059
inc eax
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fcompp
fnstsw ax
test ah, 0x41
jp 0x100ed05b
movzx eax, word [esi + 0xc]
mov ecx, dword [esp + 0x3c]
inc dword [esp + 0x44]
lea edx, [ecx + eax*2]
mov dword [esp + 0x3c], edx
jmp 0x100ed05b
fstp st(0)
jmp 0x100ed01f
fstp st(0)
mov eax, dword [esp + 0x30]
movzx edx, word [esi + 0xe]
movzx ecx, word [esp + 0x70]
mov edi, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x30], eax
movzx eax, ax
sub edx, ecx
dec edx
cmp eax, edx
mov dword [esp + 0x34], eax
jl 0x100ecefc
movzx eax, word [esi + 0xa]
movzx ecx, word [esi + 0xc]
mov edx, dword [esp + 0x68]
sub eax, 2
imul eax, ecx
mov ebx, dword [esp + 0x54]
lea edi, [edx + eax*2]
movzx eax, word [esi + 0xe]
mov ecx, eax
sub ecx, dword [esp + 0x70]
movzx edx, ax
dec ecx
movzx ecx, cx
mov dword [esp + 0x30], ecx
movzx ecx, cx
dec edx
cmp ecx, edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x34], ecx
jge 0x100ed158
movzx eax, word [esp + 0x44]
mov dword [esp + 0x48], eax
fild dword [esp + 0x48]
fild dword [esp + 0x34]
fmul st(3)
fsub st(1)
fcom st(4)
fnstsw ax
test ah, 0x41
jne 0x100ed0e7
fstp st(0)
fld st(3)
movzx eax, word [esi + 0xc]
mov dword [esp + 0x40], eax
test ax, ax
je 0x100ed133
movzx ecx, word [esi + 0xc]
movsx eax, word [edi]
movsx edx, word [edi + ecx*2]
sub edx, eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x58], eax
fild dword [esp + 0x48]
fmul st(1)
fiadd dword [esp + 0x58]
call fcn.100b2760
mov word [ebx], ax
mov eax, dword [esp + 0x40]
add eax, 0xffff
add ebx, 2
add edi, 2
mov dword [esp + 0x40], eax
test ax, ax
jne 0x100ed0f4
mov eax, dword [esp + 0x30]
fstp st(0)
movzx ecx, word [esi + 0xe]
mov edi, dword [esp + 0x3c]
inc eax
mov dword [esp + 0x30], eax
movzx eax, ax
dec ecx
cmp eax, ecx
mov dword [esp + 0x34], eax
jl 0x100ed0d2
fstp st(0)
mov dword [esp + 0x54], ebx
movzx eax, word [esi + 0xc]
mov ecx, dword [esp + 0xa8]
test ax, ax
je 0x100ed182
mov dx, word [ecx]
mov word [ebx], dx
add eax, 0xffff
add ebx, 2
add ecx, 2
test ax, ax
jne 0x100ed168
mov dword [esp + 0x54], ebx
mov eax, dword [esp + 0x80]
add eax, eax
add dword [esp + 0x6c], eax
sub dword [esp + 0x74], 1
jne 0x100eca29
mov eax, dword [esp + 0x38]
add dword [esp + 0x7c], 4
inc eax
cmp eax, dword [esi + 4]
mov dword [esp + 0x38], eax
jl 0x100ec9c6
fstp st(2)
fstp st(1)
fstp st(0)
mov eax, dword [esp + 0x68]
push eax
call fcn.100afea7
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8