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

Disassembly:
sub esp, 0x4c
push esi
mov esi, ecx
push edi
fld dword [esi + 0x68]
fmul dword [0x4fedb4]
mov eax, dword [esi + 0x30]
dec eax
fstp dword [esp + 8]
xor byte [eax - 0x27], cl
pop esp
and al, 8
je 0x40c769
add byte [eax], al
dec eax
je 0x40c6c8
dec eax
jne 0x40c86d
fld dword [esp + 8]
fmul dword [esi + 0x20]
fadd dword [esi + 0x74]
fstpnce st(1), st(0)
je 0x40c612
pop esi
js 0x40c61c
loopne 0x40c664
add byte [ecx], al
add byte [eax], al
jne 0x40c64f
mov byte [esi + 0x24], 1
pop edi
pop esi
add esp, 0x4c
ret
mov eax, dword [esp + 8]
mov ecx, esi
push eax
call fcn.0040c290
fld dword [esi + 0x20]
fld st(0)
fmul dword [esi + 0x5c]
mov edx, dword [esi]
push ss
lea eax, [esp + 0x18]
push eax
mov ecx, esi
fstp dword [esp + 0x1c]
fld st(0)
fmul dword [esi + 0x60]
fstp dword [esp + 0x20]
fmul dword [esi + 0x64]
fstp dword [esp + 0x24]
call dword [edx + 0x30]
fld dword [esp + 8]
fmul dword [esi + 0x14]
fld dword [esp + 8]
fmul dword [esi + 0x18]
fld dword [esp + 8]
fmul dword [esi + 0x1c]
mov edx, dword [esi]
lea eax, [esp + 0x24]
push eax
mov ecx, esi
fstp dword [esp + 0x18]
fxch st(1)
fadd dword [esi + 8]
fstp dword [esp + 0x28]
fadd dword [esi + 0xc]
fstp dword [esp + 0x2c]
fld dword [esp + 0x18]
fadd dword [esi + 0x10]
fstp dword [esp + 0x30]
call dword [edx + 0x2c]
jmp 0x40c86d
fld dword [esp + 8]
fmul dword [esi + 0x20]
fadd dword [esi + 0x74]
fst dword [esi + 0x74]
fcomp dword [esi + 0x78]
fnstsw ax
and eax, 0x100
jne 0x40c6f0
push 3
mov ecx, esi
call fcn.0040c190
pop edi
pop esi
add esp, 0x4c
ret
mov ecx, dword [esp + 8]
push ecx
mov ecx, esi
call fcn.0040c290
fld dword [esi + 0x20]
fld st(0)
fmul dword [esi + 0x5c]
mov edx, dword [esi]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
fstp dword [esp + 0x34]
fld st(0)
fmul dword [esi + 0x60]
fstp dword [esp + 0x38]
fmul dword [esi + 0x64]
fstp dword [esp + 0x3c]
call dword [edx + 0x30]
fld dword [esp + 8]
fmul dword [esi + 0x14]
fld dword [esp + 8]
fmul dword [esi + 0x18]
fld dword [esp + 8]
fmul dword [esi + 0x1c]
mov edx, dword [esi]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
fstp dword [esp + 0x18]
fxch st(1)
fadd dword [esi + 8]
fstp dword [esp + 0x40]
fadd dword [esi + 0xc]
fstp dword [esp + 0x44]
mov byte [esp + 0x18], 0xd8
inc esi
adc cl, bl
pop esp
and al, 0x48
call dword [edx + 0x2c]
jmp 0x40c86d
fld dword [esp + 8]
fmul dword [esi + 0x20]
mov ecx, esi
fadd dword [esi + 0x74]
fst dword [esi + 0x74]
fcomp dword [esi + 0x78]
fnstsw ax
and eax, 0x100
jne 0x40c791
push 2
call fcn.0040c190
pop edi
pop esi
add esp, 0x4c
ret
fld dword [esp + 8]
fmul dword [esi + 0x14]
fld dword [esp + 8]
fmul dword [esi + 0x18]
fld dword [esp + 8]
fmul dword [esi + 0x1c]
mov edx, dword [esi]
lea eax, [esp + 0x48]
push eax
fnstcw word [esi]
inc ebx
dec eax
fnstenv [ecx - 0x28]
inc esi
or cl, bl
pop esp
and al, 0x4c
fadd dword [esi + 0xc]
fstp dword [esp + 0x50]
fld dword [esp + 0x48]
fadd dword [esi + 0x10]
fstp dword [esp + 0x54]
call dword [edx + 0x2c]
mov eax, dword [0x5370f0]
mov ecx, dword [eax + 0xa8]
add ecx, 0xc4
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], edx
mov al, 0x49
or byte [ecx - 0x75ebdbb4], cl
mov cs, word [eax - 0x7c000000]
leave
jne 0x40c86d
fld dword [esi + 8]
fsub dword [esp + 0xc]
fld dword [esi + 0xc]
fsub dword [esp + 0x10]
fld dword [esi + 0x10]
fsub dword [esp + 0x14]
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)
fcomp dword [eax + 0x7a60]
fnstsw ax
test ah, 5
jp 0x40c86d
mov byte [esi + 0x88], 1
mov edx, dword [0x5304f0]
mov eax, dword [edx + 0x7a5c]
mov dword [esi + 0x8c], eax
mov ecx, dword [0x5304f0]
mov edx, dword [ecx + 0x7a50]
mov dword [esi + 0x90], 0
mov dword [esi + 0x98], edx
mov al, byte [esi + 0x88]
test al, al
je 0x40c91a
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
cmp eax, ecx
jge 0x40c91a
mov ecx, dword [esi + 0x6c]
mov edx, dword [esi + 0x90]
add edx, ecx
mov ecx, dword [esi + 0x8c]
cmp edx, ecx
mov dword [esi + 0x90], edx
jl 0x40c91a
lea edi, [esi + 8]
mov edx, dword [esi + 0x90]
push eax
sub edx, ecx
mov ecx, esi
mov dword [esi - 0x37ffff70], edx
lea edx, [eax + 1]
mov dword [esi + 0x94], edx
call fcn.0040cc30
push 0
push 0x42c80000
push 0x41a00000
push edi
push 0x800000b6
mov ecx, 0x5304a0
call fcn.00414870
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x98]
cmp eax, ecx
jge 0x40c90e
mov ecx, dword [esi + 0x8c]
mov edx, dword [esi + 0x90]
cmp edx, ecx
jge 0x40c8ad
pop edi
pop esi
add esp, 0x4c
ret
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x40c91a
call fcn.0045ab80
pop edi
pop esi
add esp, 0x4c
ret