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

Disassembly:
sub esp, 0x7c
mov edx, dword [0x72d944]
lea eax, [esp + 0x10]
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x1c]
lea edi, [esi + 0x24]
push eax
push ecx
mov ecx, dword [edx + 0x74]
push edi
call fcn.00492850
cmp al, 1
jne 0x5fffa2
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor edx, edx
push 1
mov cl, byte [eax + 0x11]
mov dx, word [edi + 6]
imul ecx, edx
xor edx, edx
mov dx, word [eax + 0x1a]
mov eax, dword [esp + 0x20]
add ecx, edx
push ecx
lea ecx, [eax + 0x28]
call fcn.005ec7f0
mov ecx, dword [esi + 0x1c]
push 1
push 2
add ecx, 0x10
call fcn.0042df50
mov ecx, dword [esi + 0x60]
xor ebp, ebp
push ebp
push ebp
call fcn.004e22a0
mov ecx, eax
call fcn.004565d0
mov ecx, dword [esi + 0x1c]
sub esp, 0xc
mov dword [esp + 0x34], esp
mov eax, dword [ecx + 4]
fld dword [eax + 0x40]
fld dword [eax + 0x44]
fld dword [esi + 0x30]
fmul dword [0x6d512c]
mov edx, dword [eax + 0x48]
mov dword [esp + 0x70], edx
fst dword [esp + 0x1c]
fmul dword [eax + 0x20]
fadd st(2)
fstp dword [esp + 0x68]
fld dword [esp + 0x1c]
fmul dword [eax + 0x24]
mov ecx, dword [esp + 0x68]
fadd st(1)
fst dword [esp + 0x6c]
fstp st(2)
fstp st(0)
fld dword [esp + 0x1c]
fmul dword [eax + 0x28]
mov eax, esp
fadd dword [esp + 0x70]
mov dword [eax], ecx
fst dword [esp + 0x70]
fxch st(1)
fstp dword [eax + 4]
fstp dword [eax + 8]
mov ecx, dword [esi + 0x2c]
call fcn.005ff520
mov edx, dword [esi + 0x2c]
mov eax, dword [edx + 0x74]
mov eax, dword [eax + 4]
cmp eax, ebp
mov dword [esp + 0x28], eax
je 0x6003f8
fld dword [esp + 0xa4]
fmul dword [esp + 0xa4]
fld dword [esp + 0xa0]
fmul dword [esp + 0xa0]
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
push ecx
faddp st(1)
fld dword [esp + 0xa0]
fmul dword [esp + 0xa0]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
faddp st(1)
fstp dword [esp]
call fcn.00404020
fcom dword [0x6d035c]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x6000e0
fld dword [0x6d0348]
fdiv st(1)
fld dword [esp + 0x9c]
fmul st(1)
fstp dword [esp + 0x68]
fld dword [esp + 0xa0]
fmul st(1)
fstp dword [esp + 0x6c]
fld dword [esp + 0xa4]
fmul st(1)
fstp dword [esp + 0x70]
fstp st(0)
fstp dword [esp + 0x18]
jmp 0x6000ea
fstp st(0)
mov dword [esp + 0x18], 0
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x20], ebp
mov ecx, dword [eax + 0x84]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x78]
cmp ecx, ebp
jbe 0x6003f8
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x2c]
mov edi, dword [edx + 4]
lea eax, [esp + 0x74]
push eax
add edi, 0x10
call fcn.005ffc60
mov ebx, eax
call fcn.00404010
and eax, 0xffff
mov dword [esp + 0x30], ebp
mov dword [esp + 0x2c], eax
mov ecx, dword [esi + 0x1c]
fild qword [esp + 0x2c]
fmul dword [0x6d21a8]
fsubr dword [0x6d0348]
fmul dword [ebx]
fld st(0)
fmul dword [edi]
fadd dword [esp + 0x50]
fstp dword [esp + 0x50]
fld st(0)
fmul dword [edi + 4]
fadd dword [esp + 0x54]
fstp dword [esp + 0x54]
fmul dword [edi + 8]
fadd dword [esp + 0x58]
fstp dword [esp + 0x58]
mov edi, dword [ecx + 4]
add edi, 0x20
call fcn.00404010
and eax, 0xffff
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], eax
mov edx, dword [esi + 0x1c]
fild qword [esp + 0x34]
fmul dword [0x6d21a8]
fsubr dword [0x6d0348]
fmul dword [esi + 0x30]
fmul dword [0x6d1310]
fld st(0)
fmul dword [edi]
fadd dword [esp + 0x50]
fstp dword [esp + 0x50]
fld st(0)
fmul dword [edi + 4]
fadd dword [esp + 0x54]
fstp dword [esp + 0x54]
fmul dword [edi + 8]
fadd dword [esp + 0x58]
fstp dword [esp + 0x58]
mov edi, dword [edx + 4]
add edi, 0x30
call fcn.00404010
and eax, 0xffff
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], eax
mov ecx, dword [esi + 0x2c]
fild qword [esp + 0x3c]
lea eax, [esp + 0x80]
push eax
fmul dword [0x6d21a8]
fsubr dword [0x6d0348]
fstp dword [esp + 0x28]
call fcn.005ffc60
fld dword [esp + 0x24]
fmul dword [eax + 8]
fld st(0)
fmul dword [edi]
fadd dword [esp + 0x50]
push ecx
fstp dword [esp + 0x54]
fld st(0)
fmul dword [edi + 4]
fadd dword [esp + 0x58]
fstp dword [esp + 0x58]
fmul dword [edi + 8]
fadd dword [esp + 0x5c]
fstp dword [esp + 0x5c]
fld dword [esp + 0x54]
fsub dword [esp + 0x94]
fstp dword [esp + 0x48]
fld dword [esp + 0x58]
fsub dword [esp + 0x98]
fstp dword [esp + 0x4c]
fld dword [esp + 0x5c]
fsub dword [esp + 0x9c]
fst dword [esp + 0x50]
fmul dword [esp + 0x50]
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
faddp st(1)
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
faddp st(1)
fstp dword [esp]
call fcn.00404020
fcom dword [0x6d035c]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x6002cc
fld dword [0x6d0348]
fdiv st(1)
fld dword [esp + 0x44]
fmul st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fmul st(1)
fstp dword [esp + 0x4c]
fstp st(0)
fstp dword [esp + 0x10]
jmp 0x6002d6
fstp st(0)
mov dword [esp + 0x10], 0
mov eax, dword [esi + 0x2c]
push ecx
fld dword [eax + 0x7c]
fld dword [esp + 0x6c]
fmul st(1)
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fld dword [esp + 0x70]
fmul st(1)
fadd dword [esp + 0x4c]
fstp dword [esp + 0x4c]
fld dword [esp + 0x74]
fmul st(1)
fadd dword [esp + 0x50]
fstp dword [esp + 0x50]
fstp st(0)
fld dword [eax + 0x80]
fld dword [0x72c608]
fmul st(1)
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fld dword [0x72c60c]
fmul st(1)
fadd dword [esp + 0x4c]
fstp dword [esp + 0x4c]
fmul dword [0x72c610]
fadd dword [esp + 0x50]
fst dword [esp + 0x50]
fmul dword [esp + 0x50]
fld dword [esp + 0x4c]
fmul dword [esp + 0x4c]
faddp st(1)
fld dword [esp + 0x48]
fmul dword [esp + 0x48]
faddp st(1)
fstp dword [esp]
call fcn.00404020
fcom dword [0x6d035c]
add esp, 4
fnstsw ax
test ah, 0x44
jnp 0x600391
fdivr dword [0x6d0348]
fld dword [esp + 0x44]
fmul st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x48]
fmul st(1)
fstp dword [esp + 0x48]
fld dword [esp + 0x4c]
fmul st(1)
fstp dword [esp + 0x4c]
fstp st(0)
fld dword [esp + 0x10]
fcomp dword [esp + 0x14]
mov dword [esp + 0x1c], 0
fnstsw ax
test ah, 5
jp 0x6003c7
fld dword [esp + 0x14]
fsub dword [esp + 0x10]
mov ecx, dword [esi + 0x2c]
fdiv dword [esp + 0x14]
fmul dword [ecx + 0x88]
fmul dword [esp + 0x18]
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push ebp
push esi
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x60]
push eax
call dword [edx + 0x68]
mov ecx, dword [esi + 0x2c]
mov eax, dword [esp + 0x20]
inc eax
mov edx, dword [ecx + 0x78]
mov dword [esp + 0x20], eax
cmp eax, edx
jb 0x600106
mov eax, dword [0x72d944]
mov edx, dword [esi + 0x5c]
push edx
mov ecx, dword [eax + 0x58]
call fcn.00465880
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 0x18