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

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [ebp + 0x40]
test edi, edi
mov esi, ecx
jne 0x5c7bbe
push esi
call fcn.0043c7e0
add esi, 0x40
push esi
call fcn.0043c7e0
add esp, 8
pop edi
pop esi
pop ebp
add esp, 8
ret 0x10
push edi
push esi
call fcn.00401310
mov ecx, dword [ebp + 4]
mov eax, dword [edi + 0xbc]
add esp, 8
cmp ecx, 1
mov dword [esp + 0x18], eax
jne 0x5c7be4
mov dword [esp + 0xc], 0x466a6000
jmp 0x5c7bee
mov edx, dword [edi + 0xc0]
mov dword [esp + 0xc], edx
fld dword [esp + 0x1c]
fcomp qword [0x786e60]
fnstsw ax
test ah, 0x44
jnp 0x5c7c07
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
fld dword [esp + 0x20]
fcomp qword [0x786e60]
fnstsw ax
test ah, 0x44
jnp 0x5c7c20
mov edx, dword [esp + 0x20]
mov dword [esp + 0x18], edx
cmp ecx, 1
mov eax, dword [ebp + 0x58]
fild dword [eax + 0x18]
mov dword [esp + 0x20], 0x3f800000
fidiv dword [eax + 0x14]
fstp dword [esp + 0x1c]
je 0x5c7c49
cmp ecx, 4
je 0x5c7c49
cmp ecx, 2
je 0x5c7c49
cmp ecx, 5
jne 0x5c7c66
fld dword [0x7a27e0]
mov eax, dword [0x7a27dc]
fdiv dword [0x7a27d8]
mov dword [esp + 0x20], eax
fmul dword [esp + 0x1c]
fstp dword [esp + 0x1c]
cmp ecx, 9
je 0x5c7c70
cmp ecx, 0xa
jne 0x5c7c78
mov dword [esp + 0x1c], 0x3f19a956
movzx ecx, word [edi + 0xc4]
mov dword [esp + 0x10], ecx
push ebx
fild dword [esp + 0x14]
fmul dword [esp + 0x24]
fmul dword [0x784260]
call fcn.0075bc00
mov ebx, eax
push ebx
call fcn.0043c310
fstp dword [esp + 0x28]
push ebx
call fcn.0043c3d0
fdivr dword [esp + 0x2c]
movzx edx, word [edi + 0xc4]
mov dword [esp + 0x2c], edx
fdivr dword [0x784250]
fstp dword [esp + 0x1c]
fild dword [esp + 0x2c]
fmul dword [esp + 0x28]
fmul dword [0x784260]
call fcn.0075bc00
mov ebx, eax
push ebx
call fcn.0043c310
fstp dword [esp + 0x2c]
push ebx
call fcn.0043c3d0
fdivr dword [esp + 0x30]
lea ebx, [esi + 0x40]
push ebx
fdivr dword [0x784250]
fstp dword [esp + 0x38]
fld dword [esp + 0x24]
fsub dword [esp + 0x30]
fdivr dword [esp + 0x24]
fstp dword [esp + 0x34]
call fcn.0043c7e0
fld dword [esp + 0x38]
mov eax, dword [esp + 0x28]
fchs
mov ecx, dword [esp + 0x34]
fstp dword [esi + 0x54]
fld dword [esp + 0x34]
mov dword [ebx], eax
fmul dword [esp + 0x30]
mov dword [esi + 0x68], ecx
mov dword [esi + 0x6c], 0x3f800000
mov dword [esi + 0x7c], 0
fchs
fstp dword [esi + 0x78]
movzx edi, word [edi + 0xc4]
shr di, 1
push edi
call fcn.0043c310
fstp dword [esp + 0x38]
push edi
call fcn.0043c3d0
fdivr dword [esp + 0x3c]
add esp, 0x1c
fcom dword [0x7d7d3c]
fnstsw ax
test ah, 0x44
jnp 0x5c7d75
fdivr dword [0x78d860]
jmp 0x5c7d7d
fstp st(0)
fld dword [0x784560]
fstp dword [ebp + 0xc]
push ebx
xor edi, edi
push esi
lea ebp, [esi + 0x80]
push ebp
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
call fcn.0063cc5b
xor ecx, ecx
cmp ecx, 5
ja 0x5c7f50
jmp dword [ecx*4 + 0x5c7fcc]
lea edx, [ecx + 0xc]
shl edx, 4
fld dword [edx + esi + 8]
lea eax, [edx + esi]
fld dword [eax + 4]
fld dword [eax]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fdivr dword [0x784250]
fld st(0)
fmul dword [eax]
fstp dword [eax]
mov eax, ecx
shl eax, 4
add eax, esi
fld st(0)
fmul dword [eax + 0xc4]
inc ecx
cmp ecx, 5
fstp dword [eax + 0xc4]
fld st(0)
fmul dword [eax + 0xc8]
fstp dword [eax + 0xc8]
fmul dword [eax + 0xcc]
fstp dword [eax + 0xcc]
jle 0x5c7d9e
pop ebx
pop edi
pop esi
pop ebp
add esp, 8
ret 0x10