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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push esi
lea eax, [esp + 0x7c]
push edi
push eax
push ecx
push edx
xor ebx, ebx
call fcn.0045e6d0
add esp, 0xc
test eax, eax
jne 0x4159a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x88]
fld qword [edi + 0x30]
fsub qword [esp + 0x80]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0xb0]
push ecx
mov dword [esp + 0xac], edx
fstp qword [esp + 0xb4]
fld qword [edi + 0x38]
fsub qword [esp + 0x8c]
mov dword [esp + 0xb0], eax
fstp qword [esp + 0xbc]
call fcn.004189e0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
fstp qword [esp + 0x34]
add esp, 4
add edx, 0x30
mov esi, 1
add eax, 0x30
mov dword [esp + 0x2c], esi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x48], eax
mov ecx, dword [esp + 0x5c]
cmp esi, 2
mov edx, dword [ecx]
mov dword [esp + 0x38], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x3c], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x40], edx
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov edx, dword [ecx]
mov dword [esp + 0x4c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x50], eax
mov edx, dword [ecx + 8]
mov dword [esp + 0x54], edx
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x58], eax
je 0x415a77
cmp esi, 4
jne 0x415a8b
push 0xbff00000
lea ecx, [esp + 0x3c]
push 0
push ecx
call fcn.00418af0
add esp, 0xc
cmp esi, 3
je 0x415a95
cmp esi, 4
jne 0x415aa9
push 0xbff00000
lea edx, [esp + 0x50]
push 0
push edx
call fcn.00418af0
add esp, 0xc
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00418ab0
fst qword [esp + 0x18]
fcomp qword [0x550f30]
add esp, 8
fnstsw ax
test ah, 0x41
jne 0x415ade
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x3ff00000
jmp 0x415aff
fld qword [esp + 0x10]
fcomp qword [0x550fa8]
fnstsw ax
test ah, 1
je 0x415aff
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xbff00000
fld qword [esp + 0x10]
call fcn.00547db0
fmul qword [0x550f60]
fmul qword [0x550f68]
fmul qword [0x550f08]
fsin
fst qword [esp + 0x18]
fabs
fcomp qword [0x550f90]
fnstsw ax
test ah, 1
jne 0x415cf4
fld qword [esp + 0x4c]
fadd qword [esp + 0x38]
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x64], eax
fmul qword [0x550f68]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x8c]
lea eax, [esp + 0x70]
mov dword [esp + 0x68], ecx
push eax
mov dword [esp + 0x70], edx
fstp qword [esp + 0x74]
fld qword [esp + 0x58]
fadd qword [esp + 0x44]
fmul qword [0x550f68]
fstp qword [esp + 0x7c]
call fcn.004189e0
lea ecx, [esp + 0xb4]
lea edx, [esp + 0x74]
push ecx
push edx
fstp st(0)
call fcn.00418ab0
fst qword [esp + 0x1c]
fcomp qword [0x550f30]
add esp, 0xc
fnstsw ax
test ah, 0x41
jne 0x415bc7
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x3ff00000
jmp 0x415be8
fld qword [esp + 0x10]
fcomp qword [0x550fa8]
fnstsw ax
test ah, 1
je 0x415be8
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xbff00000
fld qword [esp + 0x10]
call fcn.00547db0
fmul qword [0x550f60]
mov eax, dword [ebp + 0x14]
fmul qword [0x550f08]
fcos
fmul qword [esp + 0x30]
fadd st(0), st(0)
fdiv qword [esp + 0x18]
fld qword [edi + 0x40]
fadd st(0), st(0)
faddp st(1)
fstp qword [esp + 0x20]
fld qword [edi + 0x40]
fld st(0)
fmul st(1)
fld qword [esp + 0x30]
fmul qword [esp + 0x30]
lea edi, [eax + ebx*8]
mov eax, dword [esp + 0x24]
push edi
fsubp st(1)
fstp qword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
fstp st(0)
fld qword [0x550f30]
fdiv qword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
sub esp, 8
fdiv qword [esp + 0x34]
fsubr qword [0x550f30]
fstp qword [esp]
call fcn.00415820
add esp, 0x1c
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x20], 0
jle 0x415cf1
mov eax, dword [ebp + 0x18]
mov esi, ebx
shl esi, 4
add esi, eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edx, esi
sub esp, 8
mov dword [edx], eax
mov eax, dword [esp + 0x70]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x74]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x78]
fld qword [edi]
fdiv qword [esp + 0x20]
fstp qword [esp]
push edx
push esi
call fcn.00418980
fld qword [edi]
fcomp qword [0x550f20]
add esp, 0x10
fnstsw ax
test ah, 1
je 0x415cce
fld qword [edi]
fchs
fstp qword [edi]
mov eax, dword [ebp + 0x1c]
inc ebx
add esi, 0x10
add edi, 8
cmp ebx, eax
jge 0x415d02
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x415c82
mov esi, dword [esp + 0x2c]
mov edi, dword [ebp + 0x10]
inc esi
cmp esi, 4
mov dword [esp + 0x2c], esi
jle 0x415a2f
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret