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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd4
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, 1
cmp edx, ecx
jne 0x41acca
mov edx, dword [0x9885c8]
test edx, edx
jne 0x41acca
mov edx, dword [0x91cae4]
test edx, edx
jg 0x41acca
mov ebx, dword [edi + 0x74]
test ebx, ebx
je 0x41acca
mov edx, dword [eax + 0x44]
add eax, 0x44
cmp edx, eax
je 0x41acca
mov eax, edx
test eax, eax
je 0x41acca
lea esi, [eax - 4]
test esi, esi
je 0x41acca
cmp dword [esi + 0xc], ecx
jne 0x41acca
lea eax, [edi + 0x58]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x1c]
add ecx, 0x200
push ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
call fcn.00402240
fstp dword [esp + 0x20]
add esp, 4
cmp ebx, 1
jne 0x41a8ae
fld dword [edi + 0x374]
push 0x3f800000
fadd st(0), st(0)
fadd dword [0x890d44]
fmul dword [0x9259bc]
fadd dword [edi + 0x36c]
fst dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
fstp dword [edi + 0x36c]
push edx
call fcn.005c81b0
jmp 0x41a8de
fld dword [edi + 0x36c]
fcomp dword [0x890968]
fnstsw ax
test ah, 0x41
jne 0x41a8e7
fld dword [0x9259bc]
push 0
fmul dword [0x890d44]
push ecx
fsubr dword [edi + 0x36c]
fstp dword [esp]
call fcn.00401dc0
fstp dword [edi + 0x36c]
add esp, 8
fld dword [edi + 0x36c]
mov edx, dword [esp + 0x1c]
fmul dword [0x890510]
lea eax, [esp + 0x44]
push eax
mov ecx, eax
fsin
push ecx
push edx
lea eax, [edi + 0x68]
push eax
fmul dword [0x890cd4]
fadd dword [0x89096c]
fstp dword [esp + 0x98]
call fcn.00401c10
mov esi, dword [esi + 0x1c]
fld dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
fchs
mov edx, dword [esp + 0x58]
fstp dword [esp + 0xa4]
lea eax, [esp + 0xb0]
push esi
push eax
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xb0], edx
call fcn.006bde60
movzx esi, word [esi + 0xc4]
shr si, 1
add esp, 0x18
mov dword [esp + 0x14], esi
call fcn.006e8df0
cmp eax, 1
jne 0x41a976
shr word [esp + 0x14], 1
mov esi, dword [esp + 0x14]
mov dword [esp + 0x18], 0x3f800000
call fcn.006bf530
cmp eax, 2
jne 0x41a9a0
mov ecx, dword [0x91cf90]
mov edx, dword [ecx + 0x10]
mov al, byte [edx + 0x39]
test al, al
je 0x41a9a0
mov dword [esp + 0x18], 0x3fc00000
push esi
call fcn.0045dbf0
fadd st(0), st(0)
movsx eax, word [esp + 0x18]
mov dword [esp + 0x18], eax
fstp dword [esp + 0x20]
fild dword [esp + 0x18]
fmul dword [0x891068]
call fcn.007c4b80
lea ecx, [esp + 0x90]
lea edx, [esp + 0x70]
push eax
push ecx
push edx
call fcn.0045dc10
fld dword [esp + 0x7c]
fmul dword [esp + 0x2c]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xb4]
fstp dword [esp + 0x68]
push ecx
fld dword [esp + 0xa4]
mov edx, eax
fmul dword [esp + 0x34]
push edx
mov dword [esp + 0x6c], 0
fmul dword [esp + 0x34]
fstp dword [esp + 0x74]
call fcn.0045ed20
add esp, 0x1c
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x58]
call fcn.004102f0
lea edx, [esp + 0x20]
push edx
mov eax, edx
push eax
mov dword [esp + 0x30], 0
call fcn.0045f490
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call fcn.00401850
fst dword [esp + 0x2c]
mov al, byte [edi + 0x364]
add esp, 0x10
test al, al
je 0x41ab62
fld dword [edi + 0x368]
push ecx
fsub st(1)
fstp dword [esp]
fstp st(0)
call fcn.00401d10
fst dword [esp + 0x18]
fsub dword [0x890510]
fstp dword [esp]
call fcn.00401d10
mov eax, dword [esp + 0x18]
fstp dword [esp]
push eax
call fcn.00401da0
fstp dword [esp + 0x20]
mov ecx, dword [esp + 0x20]
push 0x40490fdb
push 0
push ecx
call fcn.00401ae0
fmul dword [0x891210]
add esp, 0x14
fadd dword [0x890f14]
fmul dword [0x9259bc]
fmul dword [0x890510]
fld st(0)
fld dword [edi + 0x368]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x41aae4
fxch st(1)
fmul dword [0x890da8]
fxch st(1)
fld dword [esp + 0x14]
fcomp dword [0x89050c]
fnstsw ax
test ah, 0x41
jne 0x41aaff
fxch st(1)
fmul dword [0x890da8]
fxch st(1)
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
fstp st(0)
test ah, 0x41
jp 0x41ab1c
mov edx, dword [esp + 0x1c]
fstp st(0)
mov dword [edi + 0x368], edx
jmp 0x41ab28
fadd dword [edi + 0x368]
fstp dword [edi + 0x368]
fld dword [edi + 0x368]
fcomp dword [0x89050c]
fld dword [edi + 0x368]
fnstsw ax
test ah, 0x41
jne 0x41ab49
fsub dword [0x890510]
jmp 0x41ab62
fcomp dword [0x89120c]
fnstsw ax
test ah, 5
jp 0x41ab68
fld dword [edi + 0x368]
fadd dword [0x890510]
fstp dword [edi + 0x368]
fld dword [edi + 0x368]
lea eax, [esp + 0x20]
fmul dword [0x89096c]
push eax
lea ecx, [esp + 0x34]
push ecx
fld st(0)
lea edx, [esp + 0x78]
fcos
push edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x3f800000
fxch st(1)
fsin
fstp dword [esp + 0x30]
fmul dword [0x890864]
fstp dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul dword [0x890864]
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fmul dword [0x890864]
fstp dword [esp + 0x34]
call fcn.0045f7c0
lea eax, [esp + 0x7c]
push 0x3e4ccccd
push eax
mov ecx, eax
push ecx
call fcn.0045f510
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0045f7c0
lea edx, [esp + 0x54]
push 0x3e4ccccd
push edx
mov eax, edx
push eax
call fcn.0045f510
push 1
call fcn.00405ed0
mov esi, eax
add esp, 0x34
test esi, esi
je 0x41acca
mov ebx, dword [esp + 0x88]
push ebx
lea ecx, [esp + 0x74]
call fcn.004022e0
push ebx
lea ecx, [esp + 0x34]
call fcn.004022e0
push ebx
lea ecx, [esp + 0x24]
call fcn.004022e0
fld dword [esp + 0x74]
fld dword [esp + 0x78]
mov ecx, dword [esp + 0x70]
mov dword [esi], ecx
fxch st(1)
fstp dword [esi + 4]
xor eax, eax
mov dword [esi + 0xc], eax
fstp dword [esi + 8]
mov edx, dword [esp + 0x30]
fld dword [esp + 0x34]
push eax
fld dword [esp + 0x3c]
mov dword [esi + 0x10], edx
mov dword [esi + 0x1c], eax
fxch st(1)
fstp dword [esi + 0x14]
push eax
push eax
fstp dword [esi + 0x18]
mov ecx, dword [esp + 0x2c]
fld dword [esp + 0x30]
push esi
fld dword [esp + 0x38]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 8]
fxch st(1)
fstp dword [esi + 0x24]
mov dword [esi + 0x2c], eax
fstp dword [esi + 0x28]
mov edx, dword [esp + 0x60]
fld dword [esp + 0x64]
fld dword [esp + 0x68]
mov dword [esi + 0x30], edx
fxch st(1)
mov dword [esi + 0x3c], 0x3f800000
fstp dword [esi + 0x34]
fstp dword [esi + 0x38]
mov eax, dword [edi + 0x64]
push eax
call fcn.006da9b0
mov byte [edi + 0x364], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4