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

Disassembly:
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ecx
push edi
mov dword [esp + 0x14], 0
je 0x4e27ba
mov edx, dword [esi]
lea eax, [ecx + ecx*2]
shl eax, 4
fld dword [edx + eax + 4]
add edx, eax
fmul dword [edx]
fcomp dword [esi + 0x4c]
fnstsw ax
test ah, 5
jp 0x4e27ab
fld dword [edx + 0x10]
fsub dword [0x68f0d4]
fld dword [edx + 0x14]
fsub dword [0x68f0d8]
fld dword [edx + 0x18]
fsub dword [0x68f0dc]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fcom dword [0x521458]
fnstsw ax
test ah, 0x41
jne 0x4e27a9
fstp dword [ebx*8 + 0x5872e0]
mov dword [ebx*8 + 0x5872e4], ecx
inc ebx
jmp 0x4e27ab
fstp st(0)
mov eax, dword [esi + 0xc]
inc ecx
cmp ecx, eax
jl 0x4e27b5
xor ecx, ecx
cmp ecx, dword [esi + 8]
jne 0x4e2740
push 0x5a72e0
push ebx
push 2
push 0x5872e0
call fcn.004b18c0
mov eax, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
mov ecx, ebx
shl ecx, 5
mov ebp, ecx
shr ecx, 2
mov dword [esp + 0x3c], eax
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
fld dword [0x68f0ac]
fld dword [0x68f0bc]
fmul dword [esi + 0x1c]
fxch st(1)
fmul dword [esi + 0x18]
lea edi, [ebx - 1]
xor eax, eax
add esp, 0x10
test edi, edi
faddp st(1)
fld dword [0x68f09c]
mov dword [esp + 0x10], 0
fmul dword [esi + 0x14]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], edi
faddp st(1)
fabs
fmul dword [0x5215f0]
fsubr dword [0x521590]
fmul dword [0x52ba8c]
fstp dword [esp + 0x20]
jl 0x4e2b24
add edx, 4
mov dword [esp + 0x28], edx
lea ecx, [ecx]
mov ecx, dword [edi*4 + 0x5a72e0]
mov ebx, dword [ecx*8 + 0x5872e4]
mov edx, dword [esi]
lea ebx, [ebx + ebx*2]
shl ebx, 4
fld dword [ebx + edx + 4]
lea ebp, [ebx + edx]
fmul dword [ebp]
fsubr dword [esi + 0x4c]
fdiv dword [esi + 0x4c]
fld st(0)
fmul dword [ebp + 0x1c]
fmul st(1)
fmul dword [esp + 0x20]
call fcn.00514cfc
fstp st(0)
cmp eax, 0x14
mov dword [esp + 0x18], eax
jge 0x4e28d5
fld dword [esp + 0x20]
fcomp dword [0x52d3c8]
fnstsw ax
test ah, 5
jp 0x4e28d5
fild dword [esp + 0x18]
fadd dword [esp + 0x10]
fst dword [esp + 0x10]
fcomp dword [0x522500]
fnstsw ax
test ah, 0x41
jne 0x4e2b00
fld dword [esp + 0x10]
mov dword [esp + 0x18], 0x14
fsub dword [0x522500]
fstp dword [esp + 0x10]
xor eax, eax
mov ecx, 0x10
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x50]
push eax
lea ecx, [ebp + 0x10]
push 0x68f0d4
push ecx
mov dword [esp + 0x84], 0x3f800000
mov dword [esp + 0x70], 0x3f800000
mov dword [esp + 0x5c], 0x3f800000
call fcn.004e20f0
add esp, 0xc
fld dword [ebp + 0x24]
call fcn.00514cfc
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
xor edi, edi
fsub dword [ebp + 0x24]
shl eax, 0x18
mov dword [esp + 0x34], eax
fmul dword [0x52d2f0]
fld st(0)
fsin
fstp dword [esp + 0x24]
fcos
jmp 0x4e2950
mov ebp, edi
and ebp, 0x80000001
jns 0x4e295f
dec ebp
or ebp, 0xfffffffe
inc ebp
mov edx, dword [esi]
mov dword [esp + 0x28], ebp
fild dword [esp + 0x28]
mov eax, edi
fsub dword [0x5213d0]
fmul dword [ebx + edx + 8]
cdq
sub eax, edx
fmul dword [esi + 0x64]
sar eax, 1
mov dword [esp + 0x28], eax
fst dword [ecx - 4]
mov eax, dword [esi]
fild dword [esp + 0x28]
fsub dword [0x5213d0]
fmul dword [ebx + eax + 8]
fmul dword [esi + 0x64]
mov dword [ecx + 4], 0
fst dword [esp + 0x18]
fmul dword [esp + 0x24]
fld st(1)
fmul st(3)
faddp st(1)
fld dword [esp + 0x18]
fmul st(3)
fxch st(2)
fmul dword [esp + 0x24]
fsubp st(2)
fxch st(1)
fstp dword [ecx]
fstp dword [ecx - 4]
mov edx, dword [esi]
mov eax, dword [ebx + edx + 0xc]
and eax, 0x80000003
jns 0x4e29d3
dec eax
or eax, 0xfffffffc
inc eax
add eax, ebp
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
add ecx, 0x20
fmul dword [0x521f20]
fstp dword [ecx - 0x14]
mov edx, dword [esi]
mov eax, dword [ebx + edx + 0xc]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x28]
sar eax, 2
add eax, edx
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fmul dword [0x521f20]
fstp dword [ecx - 0x10]
mov eax, dword [esi]
fld dword [esp + 0x50]
lea eax, [ebx + eax + 0x10]
fmul dword [ecx - 0x24]
fld dword [esp + 0x60]
fmul dword [ecx - 0x20]
faddp st(1)
fld dword [esp + 0x70]
fmul dword [ecx - 0x1c]
faddp st(1)
fld dword [esp + 0x54]
fmul dword [ecx - 0x24]
fld dword [esp + 0x74]
fmul dword [ecx - 0x1c]
faddp st(1)
fld dword [esp + 0x64]
fmul dword [ecx - 0x20]
faddp st(1)
fld dword [esp + 0x58]
fmul dword [ecx - 0x24]
fld dword [esp + 0x68]
fmul dword [ecx - 0x20]
faddp st(1)
fld dword [esp + 0x78]
fmul dword [ecx - 0x1c]
faddp st(1)
fstp dword [esp + 0x4c]
fxch st(1)
fadd dword [eax]
fstp dword [esp + 0x38]
mov edx, dword [esp + 0x38]
fadd dword [eax + 4]
fstp dword [esp + 0x3c]
fld dword [esp + 0x4c]
fadd dword [eax + 8]
mov eax, dword [esp + 0x3c]
mov dword [ecx - 0x24], edx
mov dword [ecx - 0x20], eax
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x40]
mov dword [ecx - 0x1c], edx
mov eax, dword [esi]
mov edx, dword [ebx + eax + 0x20]
add edx, dword [esp + 0x34]
mov dword [ecx - 0x18], edx
inc edi
cmp edi, 4
jl 0x4e2950
mov edx, dword [esp + 0x14]
fstp st(0)
mov eax, dword [esp + 0x2c]
mov word [eax], dx
add eax, 2
lea edi, [edx + 1]
mov word [eax], di
add eax, 2
lea ebx, [edx + 2]
mov word [eax], bx
add eax, 2
mov word [eax], bx
mov word [eax + 2], di
add eax, 2
add eax, 2
lea edi, [edx + 3]
mov word [eax], di
mov edi, dword [esp + 0x1c]
add edi, 6
add eax, 2
add edx, 4
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x28], ecx
dec edi
mov dword [esp + 0x30], edi
jns 0x4e2850
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x78], ecx
mov dword [esi + 0x74], eax
pop esi
pop ebp
pop ebx
add esp, 0x80
ret
mov edx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x78], edx
mov dword [esi + 0x74], eax
pop esi
pop ebp
pop ebx
add esp, 0x80
ret