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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push esi
push edi
lea eax, [esp + 0x90]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
call fcn.005102e0
fld qword [ebp + 0x10]
lea eax, [esp + 0xb4]
fstp dword [esp + 0x44]
mov ebx, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x54]
push ecx
mov edx, ecx
push edx
mov dword [esp + 0x5c], ebx
call fcn.00510310
fld qword [ebp + 0x18]
lea eax, [esp + 0x90]
fstp dword [esp + 0x5c]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.00510340
mov edi, dword [ebp + 0x3c]
mov edx, edi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esp + 0x68], eax
mov eax, dword [edx + 8]
mov dword [esp + 0x6c], ecx
mov ecx, dword [edx + 0xc]
mov dword [esp + 0x70], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x74], ecx
mov ecx, dword [edx + 0x14]
lea edx, [esp + 0x68]
mov dword [esp + 0x78], eax
push edx
mov eax, edx
mov dword [esp + 0x80], ecx
push eax
lea ecx, [esp + 0xb8]
push ecx
call fcn.00510430
lea edx, [esp + 0x74]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0xdc]
push ecx
call fcn.00510430
lea edx, [esp + 0x80]
push edx
mov eax, edx
push eax
lea ecx, [esp + 0xb8]
push ecx
call fcn.00510430
fld qword [ebp + 0x18]
fcom qword [ebp + 0x20]
mov esi, dword [ebp + 0x28]
add esp, 0x44
test esi, esi
fnstsw ax
je 0x5c16d8
test ah, 0x41
jne 0x5c16f6
jmp 0x5c16c0
fld qword [ebp + 0x20]
fadd qword [0x6770c8]
fstp qword [ebp + 0x20]
fcom qword [ebp + 0x20]
fnstsw ax
test ah, 0x41
je 0x5c16c0
jmp 0x5c16f6
test ah, 5
jp 0x5c16f6
lea ecx, [ecx]
fld qword [ebp + 0x20]
fsub qword [0x6770c8]
fstp qword [ebp + 0x20]
fcom qword [ebp + 0x20]
fnstsw ax
test ah, 5
jnp 0x5c16e0
fdiv qword [0x6770c0]
sub esp, 8
fstp qword [esp]
call fcn.005386b0
fstp dword [esp + 0x30]
fld qword [ebp + 0x20]
fdiv qword [0x6770c0]
fstp qword [esp]
call fcn.005386b0
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
add esp, 8
fmul dword [0x6770b8]
fsubr qword [ebp + 0x18]
fstp dword [esp + 0x10]
fld dword [esp + 0x24]
fmul dword [0x6770b8]
fsubr qword [ebp + 0x20]
fstp dword [esp + 0x14]
fld dword [esp + 0x24]
fld dword [esp + 0x28]
fucompp
fnstsw ax
test ah, 0x44
jp 0x5c1797
xor eax, eax
cmp esi, eax
je 0x5c177b
fld qword [ebp + 0x20]
mov dword [esp + 0x14], eax
fsub qword [ebp + 0x18]
mov dword [esp + 0x2c], eax
fstp qword [esp + 0x18]
fld qword [esp + 0x18]
fstp dword [esp + 0x10]
jmp 0x5c180e
fld qword [ebp + 0x18]
mov dword [esp + 0x14], eax
fsub qword [ebp + 0x20]
mov dword [esp + 0x2c], eax
fstp qword [esp + 0x18]
fld qword [esp + 0x18]
fstp dword [esp + 0x10]
jmp 0x5c180e
test esi, esi
mov ecx, dword [esp + 0x10]
mov eax, 0x7fffffff
je 0x5c17d8
test eax, ecx
je 0x5c17c0
fld dword [0x6770b8]
fsub dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd qword [ebp + 0x18]
fstp qword [ebp + 0x18]
test dword [esp + 0x14], eax
je 0x5c17d0
fld dword [esp + 0x14]
fsubr qword [ebp + 0x20]
fstp qword [ebp + 0x20]
fld qword [ebp + 0x20]
fsub qword [ebp + 0x18]
jmp 0x5c180a
test eax, ecx
je 0x5c17e6
fld dword [esp + 0x10]
fsubr qword [ebp + 0x18]
fstp qword [ebp + 0x18]
test dword [esp + 0x14], eax
je 0x5c1804
fld dword [0x6770b8]
fsub dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fadd qword [ebp + 0x20]
fstp qword [ebp + 0x20]
fld qword [ebp + 0x18]
fsub qword [ebp + 0x20]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fdiv dword [0x6770b8]
call fcn.00667ad0
mov edx, dword [ebp + 0x40]
push edx
mov dword [esp + 0x74], eax
call dword [ebp + 0x2c]
fld dword [esp + 0x30]
fadd dword [esp + 0x18]
mov esi, eax
add esp, 4
mov dword [esp + 0x28], 1
fadd dword [esp + 0x10]
fld dword [0x674a7c]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x5c1858
mov dword [esp + 0x28], 0
mov eax, dword [0x6bf1f4]
test byte [eax + 0xd8], 0x10
je 0x5c197f
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5c197f
test esi, esi
je 0x5c197f
push edi
call fcn.00510890
add esp, 4
cmp eax, 2
je 0x5c197f
lea edx, [esp + 0x18]
push edx
xor ecx, ecx
test eax, eax
push edi
mov dword [esp + 0x24], ecx
push ecx
jne 0x5c18cd
mov eax, ebx
push eax
mov dword [esp + 0x28], eax
call fcn.00510ae0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.00510d60
fstp dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
add esp, 0x18
mov dword [esp + 0x38], edx
jmp 0x5c1927
mov eax, 0x3f800000
push eax
mov dword [esp + 0x28], eax
call fcn.00510b90
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call fcn.00510d60
fdivr qword [ebp + 0x10]
lea edx, [esp + 0x30]
push edx
mov eax, 0x3f800000
push edi
xor ecx, ecx
push eax
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x40], ecx
fstp dword [esp + 0x4c]
call fcn.00510b90
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push eax
push ecx
call fcn.00510d60
fdivr qword [ebp + 0x10]
add esp, 0x30
fstp dword [esp + 0x38]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call fcn.00510a40
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x38]
lea ecx, [esp + 0x2c]
call fcn.005c13b0
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x50]
lea ecx, [esp + 0x34]
call fcn.005c13b0
fld dword [esp + 0x70]
fadd dword [esp + 0x8c]
add esp, 0x18
fstp dword [esp + 0x58]
fld dword [esp + 0x5c]
fadd dword [esp + 0x24]
fstp dword [esp + 0x5c]
lea edx, [esp + 0x30]
push edx
lea edx, [esp + 0x4c]
xor ecx, ecx
push edx
mov eax, 0x3f800000
push ecx
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
call fcn.00510a40
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
add esp, 0x10
test esi, esi
je 0x5c19b9
mov ebx, dword [ebp + 0x40]
push ebx
push eax
push ecx
call dword [ebp + 0x30]
jmp 0x5c19c5
mov edx, dword [ebp + 0x40]
push edx
push eax
push ecx
call dword [ebp + 0x34]
mov ebx, dword [ebp + 0x40]
mov eax, dword [esp + 0x1c]
mov esi, dword [ebp + 0x28]
add esp, 0xc
test eax, 0x7fffffff
je 0x5c1a2c
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov ecx, dword [ebp + 0x38]
push edx
push eax
push 0
push ebx
push ecx
lea edi, [esp + 0x5c]
lea eax, [esp + 0x24]
call fcn.005c1460
add esp, 0x14
test esi, esi
jne 0x5c1a05
fld dword [esp + 0x10]
fchs
fstp dword [esp + 0x10]
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00510340
lea ecx, [esp + 0x50]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x88]
push eax
call fcn.00510430
add esp, 0x14
mov edi, dword [esp + 0x70]
test edi, edi
jle 0x5c1b5f
test esi, esi
mov dword [esp + 0x2c], 0x42b40000
jne 0x5c1a4c
mov dword [esp + 0x2c], 0xc2b40000
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00510340
add esp, 8
mov edi, edi
dec edi
test esi, esi
mov ecx, 0x3f800000
mov dword [esp + 0x68], ecx
mov eax, 0x3f0d4fdf
jne 0x5c1a78
mov eax, 0xbf0d4fdf
test esi, esi
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], 0x3f0d4fdf
mov dword [esp + 0x64], ecx
jne 0x5c1a94
mov dword [esp + 0x64], 0xbf800000
test esi, esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], ecx
jne 0x5c1aac
mov dword [esp + 0x40], 0xbf800000
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x4c]
push edx
push eax
push ecx
call fcn.00510a40
mov edx, dword [esp + 0x74]
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x5c]
push ecx
push edx
push eax
call fcn.00510a40
mov eax, dword [esp + 0x48]
add esp, 0x20
test eax, eax
je 0x5c1b01
test edi, edi
jne 0x5c1b01
test dword [esp + 0x14], 0x7fffffff
jne 0x5c1b01
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
jmp 0x5c1b1d
mov edx, dword [esp + 0x40]
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x4c]
push ecx
push edx
push eax
call fcn.00510a40
add esp, 0x10
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x64]
push ebx
push ecx
mov ecx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x78]
push eax
mov eax, dword [esp + 0x78]
push ecx
push edx
push eax
call dword [ebp + 0x38]
lea ecx, [esp + 0x64]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x9c]
push eax
call fcn.00510430
add esp, 0x28
test edi, edi
jg 0x5c1a60
test dword [esp + 0x14], 0x7fffffff
je 0x5c1b8d
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0x38]
push edx
push eax
push ebx
push ecx
lea edi, [esp + 0x5c]
lea eax, [esp + 0x28]
call fcn.005c1460
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret