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

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0x58
mov ebx, dword [esp + 0x74]
mov edi, dword [esp + 0x8c]
fld qword [esp + 0x84]
fldz
fldz
mov eax, dword [esp + 0x70]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x78]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fld qword [0x4ce710]
fmul st(4)
fmulp st(1)
fstp st(2)
mov eax, edi
and eax, 2
sete byte [esp + 0x3c]
mov eax, edi
and eax, 1
setne byte [esp + 0x40]
mov dword [esp + 0x24], 0
cmp dword [esp + 0x7c], 0
jle 0x487442
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x80]
mov dword [esp + 0x44], eax
dec dword [esp + 0x44]
mov eax, dword [esp + 0x44]
imul eax, dword [esp + 0x28]
mov dword [esp + 0x44], eax
shl dword [esp + 0x44], 2
mov eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
mov dword [esp + 0x2c], eax
shl dword [esp + 0x48], 3
shl dword [esp + 0x38], 2
fld st(1)
fcomp qword [0x4ce718]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x486f50
fld st(1)
fsub qword [0x4ce720]
jmp 0x486f52
fld st(1)
fstp st(1)
fld st(0)
fnstcw word [esp + 0x4c]
mov eax, dword [esp + 0x4c]
or byte [esp + 0x4d], 0xc
fldcw word [esp + 0x4c]
fistp dword [esp + 0x50]
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], eax
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fsubr st(2)
fstp st(1)
mov eax, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x10]
imul esi, dword [esp + 0x28]
lea esi, [esi*4]
add esi, dword [esp + 0x34]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
add eax, dword [esp + 0x44]
mov dword [esp + 0x1c], eax
cmp byte [esp + 0x3c], 0
je 0x486fc5
mov edx, 0xffffff
jmp 0x486fcb
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
fcom qword [0x4ce728]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x486fe2
xor edx, edx
jmp 0x4870a0
fcom qword [0x4ce730]
fnstsw ax
test ah, 0x45
je 0x4870a0
mov ebp, edx
mov eax, ebp
sar eax, 0x10
and eax, 0xff
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fmul st(1)
fnstcw word [esp + 0x4c]
mov eax, dword [esp + 0x4c]
or byte [esp + 0x4d], 0xc
fldcw word [esp + 0x4c]
fistp dword [esp + 0x50]
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
mov edx, dword [esp + 0x50]
shl edx, 0x10
mov eax, ebp
sar eax, 0x18
and eax, 0xff
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fmul st(1)
fnstcw word [esp + 0x4c]
mov eax, dword [esp + 0x4c]
or byte [esp + 0x4d], 0xc
fldcw word [esp + 0x4c]
fistp dword [esp + 0x50]
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
mov eax, dword [esp + 0x50]
shl eax, 0x18
add edx, eax
sar ebp, 8
and ebp, 0xff
mov dword [esp + 0x50], ebp
fild dword [esp + 0x50]
fmul st(1)
fnstcw word [esp + 0x4c]
mov eax, dword [esp + 0x4c]
or byte [esp + 0x4d], 0xc
fldcw word [esp + 0x4c]
fistp dword [esp + 0x50]
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
mov eax, dword [esp + 0x50]
shl eax, 8
add edx, eax
cmp byte [esp + 0x40], 0
je 0x4871eb
cmp dword [esp + 0x10], 0
jle 0x4871a8
xor ecx, ecx
cmp dword [esp + 0x10], 0
jbe 0x4871eb
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
add dword [esp + 0x14], 0xfffffff8
cmp dword [esp + 0x10], 8
jbe 0x487182
mov dword [esp + 4], 0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov eax, edi
add eax, dword [esp + 4]
mov dword [ebx + eax*4], 0xffffff
mov eax, ecx
inc eax
imul eax, ebp
add eax, edi
mov dword [ebx + eax*4], 0xffffff
lea eax, [ecx + 2]
imul eax, ebp
add eax, edi
mov dword [ebx + eax*4], 0xffffff
lea eax, [ecx + 3]
imul eax, ebp
add eax, edi
mov dword [ebx + eax*4], 0xffffff
lea eax, [ecx + 4]
imul eax, ebp
add eax, edi
mov dword [ebx + eax*4], 0xffffff
lea eax, [ecx + 5]
imul eax, ebp
add eax, edi
mov dword [ebx + eax*4], 0xffffff
lea eax, [ecx + 6]
imul eax, ebp
add eax, edi
mov dword [ebx + eax*4], 0xffffff
lea eax, [ecx + 7]
imul eax, ebp
add eax, edi
mov dword [ebx + eax*4], 0xffffff
mov eax, dword [esp + 4]
add eax, dword [esp + 0x18]
mov dword [esp + 4], eax
add ecx, 8
cmp ecx, dword [esp + 0x14]
jb 0x4870f3
mov ebp, ecx
imul ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
jmp 0x4871a0
lea eax, [ebp + edi]
mov dword [ebx + eax*4], 0xffffff
add ebp, dword [esp + 0x2c]
inc ecx
cmp ecx, dword [esp + 0x10]
jb 0x487190
jmp 0x4871eb
cmp dword [esp + 0x10], 0
jge 0x4871eb
mov edi, dword [esp + 0x80]
add edi, dword [esp + 0x10]
inc edi
cmp edi, dword [esp + 0x80]
jge 0x4871eb
mov ebp, edi
imul ebp, dword [esp + 0x28]
mov eax, eax
lea eax, [eax]
mov eax, dword [esp + 0x24]
add eax, ebp
mov dword [ebx + eax*4], 0xffffff
add ebp, dword [esp + 0x28]
inc edi
cmp edi, dword [esp + 0x80]
jl 0x4871d0
xor ecx, ecx
cmp dword [esp + 0x80], 0
jle 0x487312
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
mov ebp, dword [eax]
fcom qword [0x4ce728]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x487220
xor edi, edi
jmp 0x4872e0
fcom qword [0x4ce730]
fnstsw ax
test ah, 0x45
jne 0x487234
mov edi, ebp
jmp 0x4872e0
mov eax, ebp
sar eax, 0x10
and eax, 0xff
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fmul st(1)
fnstcw word [esp + 0x4c]
mov eax, dword [esp + 0x4c]
or byte [esp + 0x4d], 0xc
fldcw word [esp + 0x4c]
fistp dword [esp + 0x50]
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
mov edi, dword [esp + 0x50]
shl edi, 0x10
mov eax, ebp
sar eax, 0x18
and eax, 0xff
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fmul st(1)
fnstcw word [esp + 0x4c]
mov eax, dword [esp + 0x4c]
or byte [esp + 0x4d], 0xc
fldcw word [esp + 0x4c]
fistp dword [esp + 0x50]
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
mov eax, dword [esp + 0x50]
shl eax, 0x18
add edi, eax
mov eax, ebp
sar eax, 8
and eax, 0xff
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fmul st(1)
fnstcw word [esp + 0x4c]
mov eax, dword [esp + 0x4c]
or byte [esp + 0x4d], 0xc
fldcw word [esp + 0x4c]
fistp dword [esp + 0x50]
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
mov eax, dword [esp + 0x50]
shl eax, 8
add edi, eax
sub edx, edi
add ebp, edx
cmp esi, dword [esp + 0x20]
jb 0x4872ec
mov dword [esi], ebp
mov edx, edi
mov eax, dword [esp + 0xc]
add eax, dword [esp + 8]
mov dword [esp + 0xc], eax
add esi, dword [esp + 8]
cmp esi, dword [esp + 0x1c]
ja 0x487312
inc ecx
cmp ecx, dword [esp + 0x80]
jl 0x487203
cmp esi, dword [esp + 0x1c]
ja 0x487422
cmp byte [esp + 0x3c], 0
je 0x487330
mov ecx, 0xffffff
jmp 0x48733e
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 0x38]
mov dword [esp + 0xc], eax
mov ecx, dword [eax]
fcom qword [0x4ce728]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x487355
xor ebp, ebp
jmp 0x48741c
fcom qword [0x4ce730]
fnstsw ax
test ah, 0x45
jne 0x487370
mov ebp, ecx
jmp 0x48741c
mov eax, ecx
sar eax, 0x10
and eax, 0xff
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fmul st(1)
fnstcw word [esp + 0x4c]
mov eax, dword [esp + 0x4c]
or byte [esp + 0x4d], 0xc
fldcw word [esp + 0x4c]
fistp dword [esp + 0x50]
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
mov ebp, dword [esp + 0x50]
shl ebp, 0x10
mov eax, ecx
sar eax, 0x18
and eax, 0xff
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fmul st(1)
fnstcw word [esp + 0x4c]
mov eax, dword [esp + 0x4c]
or byte [esp + 0x4d], 0xc
fldcw word [esp + 0x4c]
fistp dword [esp + 0x50]
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
mov edi, dword [esp + 0x50]
shl edi, 0x18
add ebp, edi
mov eax, ecx
sar eax, 8
and eax, 0xff
mov dword [esp + 0x50], eax
fild dword [esp + 0x50]
fmul st(1)
fnstcw word [esp + 0x4c]
mov eax, dword [esp + 0x4c]
or byte [esp + 0x4d], 0xc
fldcw word [esp + 0x4c]
fistp dword [esp + 0x50]
mov dword [esp + 0x4c], eax
fldcw word [esp + 0x4c]
mov eax, dword [esp + 0x50]
shl eax, 8
add ebp, eax
sub ecx, ebp
add ecx, edx
mov dword [esi], ecx
fld st(2)
faddp st(2)
add dword [esp + 0x30], 4
add dword [esp + 0x34], 4
inc dword [esp + 0x24]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x7c]
jl 0x486f31
fcompp
fstp st(0)
add esp, 0x58
pop ebp
pop edi
pop esi
pop ebx
ret