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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x506908
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x6503d0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 8]
xor esi, esi
cmp ecx, esi
jbe 0x489adb
cmp ecx, 1
jne 0x489a95
fldz
mov ecx, dword [edi]
fcom qword [ecx]
fnstsw ax
test ah, 0x44
jnp 0x489ad9
cmp dword [ecx + 8], esi
je 0x489ad9
mov ecx, dword [ebp + 0x14]
fstp qword [esp + 0x1c]
lea eax, [esp + 0x1c]
push eax
call fcn.00484860
jmp 0x489e43
cmp ecx, 2
jne 0x489b14
mov edx, dword [edi]
cmp dword [edx + 0x18], esi
jne 0x489b14
fld qword [edx + 0x10]
fdiv qword [edx]
fchs
fldz
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x489af0
fld qword [ebp + 0xc]
fchs
fcomp st(2)
fnstsw ax
test ah, 5
jp 0x489ac5
fstp st(1)
jmp 0x489af2
mov ecx, dword [edx + 8]
fstp st(0)
and ecx, 0x80000001
jns 0x489ad7
dec ecx
or ecx, 0xfffffffe
inc ecx
jne 0x489af2
fstp st(0)
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
fild dword [edx + 8]
fld1
fdivrp st(1)
call fcn.004c8dc0
fstp qword [esp + 0x1c]
mov ecx, dword [ebp + 0x14]
lea edx, [esp + 0x1c]
push edx
call fcn.00484860
jmp 0x489e43
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
xor ebx, ebx
mov dword [esp + 0x80], esi
cmp ecx, esi
jbe 0x489bda
mov eax, dword [edi]
mov ecx, dword [eax + esi + 8]
fld qword [eax + esi]
add eax, esi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
test eax, eax
je 0x489b50
inc dword [eax + 4]
mov byte [esp + 0x80], 1
test ecx, ecx
je 0x489bab
fimul dword [esp + 0x24]
dec ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push eax
lea ecx, [esp + 0x3c]
fstp qword [esp + 0x20]
call fcn.004894d0
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x80], 0
test ecx, ecx
je 0x489ba0
dec dword [ecx + 4]
cmp dword [ecx + 4], 0
jg 0x489b98
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esp + 0x28], 0
inc ebx
add esi, 0x10
cmp ebx, dword [edi + 8]
jb 0x489b33
jmp 0x489bcc
fstp st(0)
mov byte [esp + 0x80], 0
test eax, eax
je 0x489bcc
dec dword [eax + 4]
cmp dword [eax + 4], 0
jg 0x489bcc
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push 1
call eax
xor eax, eax
cmp dword [esp + 0x40], eax
ja 0x489c1b
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x80], 0xffffffff
je 0x489c06
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004850d0
push ecx
push 0x10
push eax
call fcn.004c596d
push esi
call fcn.004a4fe3
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
fld qword [ebp + 0xc]
lea edx, [esp + 0x2c]
push edx
sub esp, 8
lea eax, [esp + 0x44]
fstp qword [esp]
push eax
mov byte [esp + 0x90], 2
call fcn.00489a30
add esp, 0x10
test eax, eax
jne 0x489d2a
mov ecx, dword [esp + 0x34]
inc ecx
push ecx
lea ecx, [esp + 0x30]
call fcn.004793d0
fldz
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
fstp qword [eax + edx*8]
inc dword [esp + 0x34]
fld qword [ebp + 0xc]
lea ecx, [esp + 0x1c]
push ecx
sub esp, 8
fstp qword [esp]
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x4c]
push eax
xor eax, eax
call fcn.00484aa0
add esp, 0x18
test eax, eax
je 0x489cf1
mov esi, dword [ebp + 0x14]
mov ecx, dword [esi + 8]
inc ecx
push ecx
mov ecx, esi
call fcn.004793d0
fld qword [esp + 0x1c]
mov edx, dword [esi + 8]
mov eax, dword [esi]
fstp qword [eax + edx*8]
mov eax, dword [esp + 0x2c]
inc dword [esi + 8]
test eax, eax
je 0x489cc9
push eax
call fcn.004a4fe3
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x80], 0xffffffff
test eax, eax
je 0x489e43
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004850d0
push ecx
jmp 0x489e32
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x489d02
push eax
call fcn.004a4fe3
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x80], 0xffffffff
test eax, eax
je 0x489c06
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004850d0
push edx
jmp 0x489bf5
fld qword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
sub esp, 8
fstp qword [esp]
push 1
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x4c]
push edx
xor eax, eax
call fcn.00484aa0
mov esi, dword [ebp + 0x14]
add esp, 0x18
test eax, eax
je 0x489d70
mov eax, dword [esi + 8]
inc eax
push eax
mov ecx, esi
call fcn.004793d0
fld qword [esp + 0x1c]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
fstp qword [edx + ecx*8]
inc dword [esi + 8]
xor ebx, ebx
cmp dword [esp + 0x34], ebx
jbe 0x489de4
fld qword [ebp + 0xc]
lea eax, [esp + 0x1c]
push eax
sub esp, 8
fstp qword [esp]
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x4c]
push edx
mov eax, ebx
call fcn.00484aa0
add esp, 0x18
test eax, eax
je 0x489ddd
mov ecx, dword [esi + 8]
test ecx, ecx
jbe 0x489dc5
mov eax, dword [esi]
fld qword [esp + 0x1c]
fsub qword [eax + ecx*8 - 8]
lea eax, [eax + ecx*8 - 8]
fabs
fld qword [ebp + 0xc]
fadd st(0), st(0)
fcompp
fnstsw ax
test ah, 0x41
je 0x489ddd
inc ecx
push ecx
mov ecx, esi
call fcn.004793d0
fld qword [esp + 0x1c]
mov ecx, dword [esi + 8]
mov edx, dword [esi]
fstp qword [edx + ecx*8]
inc dword [esi + 8]
inc ebx
cmp ebx, dword [esp + 0x34]
jb 0x489d78
cmp dword [esi + 8], 0
mov eax, dword [esp + 0x2c]
ja 0x489e06
test eax, eax
je 0x489dfb
push eax
call fcn.004a4fe3
add esp, 4
mov eax, dword [esp + 0x38]
test eax, eax
jmp 0x489bdc
test eax, eax
je 0x489e13
push eax
call fcn.004a4fe3
add esp, 4
mov eax, dword [esp + 0x38]
mov dword [esp + 0x80], 0xffffffff
test eax, eax
je 0x489e43
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004850d0
push edx
push 0x10
push eax
call fcn.004c596d
push esi
call fcn.004a4fe3
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret