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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
fld qword [0x307f088]
push ebx
push esi
mov esi, ecx
fld qword [esi + 8]
mov eax, 0xa
fucompp
xor ecx, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x40], eax
push edi
fnstsw ax
mov dword [esp + 0x20], esi
mov dword [esp + 0x48], ecx
test ah, 0x44
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
jnp 0x1005bf72
fld qword [esi]
fchs
fstp qword [esi + 0x10]
mov edi, dword [ebp + 8]
cmp dword [edi], 0x40
jl 0x1005c2a7
cmp dword [edi + 4], 0x40
jl 0x1005c2a7
mov eax, dword [esi + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call fcn.1005a850
mov eax, dword [esi + 0x18]
cdq
and edx, 3
add eax, edx
mov ebx, eax
mov eax, dword [esp + 0x48]
sar ebx, 2
add ebx, 0x23
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], ebx
call fcn.10059470
cmp dword [esp + 0x48], 0
mov dword [esp + 0x18], 0
jle 0x1005c1eb
mov edx, dword [esp + 0x50]
add edx, 0x10
mov dword [esp + 0x1c], edx
jmp 0x1005bff0
mov edi, dword [ebp + 8]
mov edx, dword [esp + 0x1c]
jmp 0x1005bff0
mov ecx, dword [esp + 0x24]
cmp dword [esp + 0x38], ecx
jge 0x1005c1eb
fild dword [edi]
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
fld st(0)
fmul qword [edx - 0x10]
or ah, 0xc
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x30]
mov esi, dword [esp + 0x30]
fldcw word [esp + 0x12]
fild dword [edi + 4]
fnstcw word [esp + 0x12]
fst qword [esp + 0x30]
movzx eax, word [esp + 0x12]
fmul qword [edx - 8]
or ah, 0xc
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov edi, dword [esp + 0x28]
fldcw word [esp + 0x12]
fmul qword [edx]
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or ah, 0xc
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov ecx, dword [esp + 0x28]
cmp ecx, 0x10
fldcw word [esp + 0x12]
jge 0x1005c07b
mov ecx, 0x10
fld qword [esp + 0x30]
fmul qword [edx + 8]
fnstcw word [esp + 0x12]
movzx eax, word [esp + 0x12]
or ah, 0xc
mov dword [esp + 0x28], eax
fldcw word [esp + 0x28]
fistp qword [esp + 0x30]
mov ebx, dword [esp + 0x30]
cmp ebx, 0x10
fldcw word [esp + 0x12]
jge 0x1005c0ac
mov ebx, 0x10
fld qword [0x307f088]
mov eax, ecx
cdq
fstp qword [esp + 0x68]
sub eax, edx
sar eax, 1
sub esi, eax
mov eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
sub edi, eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x60], ecx
xor ecx, ecx
mov dword [esp + 0x78], eax
sub eax, ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], ebx
mov dword [esp + 0x74], ecx
mov byte [esp + 0x70], cl
mov byte [esp + 0x71], cl
je 0x1005c128
sub eax, 1
jne 0x1005c16e
mov eax, dword [esp + 0x18]
fld qword [0x3080938]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x18]
sub esp, 8
fstp qword [esp]
push edx
push eax
lea edx, [esp + 0x70]
push edx
call fcn.1005b630
jmp 0x1005c154
mov eax, dword [esp + 0x18]
fld qword [0x3080938]
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x18]
sub esp, 8
fstp qword [esp]
push edx
push eax
lea edx, [esp + 0x70]
push edx
call fcn.1005b3a0
mov ecx, dword [esp + 0x74]
cmp ecx, 0x64
jle 0x1005c164
mov ecx, 0x64
jmp 0x1005c16a
test ecx, ecx
jge 0x1005c16e
xor ecx, ecx
mov dword [esp + 0x74], ecx
fld qword [esp + 0x68]
fabs
fcomp qword [0x3080930]
fnstsw ax
test ah, 0x41
jne 0x1005c187
xor ecx, ecx
mov dword [esp + 0x74], ecx
cmp ecx, dword [esp + 0x14]
jl 0x1005c1c9
mov eax, dword [esp + 0x38]
add eax, 1
js 0x1005c1a2
cmp eax, dword [esp + 0x3c]
jg 0x1005c1a2
mov dword [esp + 0x38], eax
jmp 0x1005c1b0
push eax
lea ecx, [esp + 0x3c]
call fcn.100594e0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
lea eax, [eax + eax*2]
shl eax, 4
lea edi, [eax + ecx - 0x30]
mov ecx, 0xc
lea esi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
add dword [esp + 0x1c], 0x28
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
add eax, 1
cmp eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
jl 0x1005bfe0
push ebx
lea edx, [esp + 0x3c]
push edx
lea eax, [esi + 0x20]
push eax
lea edi, [esi + 0x1c]
push edi
push esi
mov ecx, esi
call fcn.1005ba70
fld qword [esi]
fchs
fcom qword [0x3080928]
fst qword [esi]
fnstsw ax
test ah, 5
jp 0x1005c21e
fstp st(0)
fld qword [0x3080928]
jmp 0x1005c231
fcomp qword [0x3080920]
fnstsw ax
test ah, 0x41
jne 0x1005c233
fld qword [0x3080920]
fstp qword [esi]
mov esi, dword [esi + 0x18]
cmp esi, 0x4b
jge 0x1005c255
mov ecx, 0x4b
sub ecx, esi
mov eax, 0x99999999
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add dword [edi], ecx
cmp dword [edi], 0
jge 0x1005c260
mov dword [edi], 0
cmp dword [edi], 0x64
jle 0x1005c26b
mov dword [edi], 0x64
mov esi, 1
cmp dword [esp + 0x3c], esi
jl 0x1005c287
mov eax, dword [esp + 0x40]
test eax, eax
je 0x1005c287
push eax
call fcn.10018560
add esp, 4
cmp dword [esp + 0x4c], esi
jl 0x1005c2b5
mov eax, dword [esp + 0x50]
test eax, eax
je 0x1005c2b5
push eax
call fcn.10018560
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
fld qword [0x307f088]
mov dword [esi + 0x1c], ecx
fstp qword [esi]
mov dword [esi + 0x20], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4