Function at 0x40b0e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d1bb6
push eax
mov eax, 0x10d4
mov dword fs:[0], esp
call fcn.004d06d0
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
push esi
push 2
push 2
lea ecx, [esp + 0x894]
mov dword [esp + 0x30], ebx
call fcn.0044a990
mov dword [esp + 0x10e8], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
mov eax, dword [ebp + 0xc]
mov edi, 1
cmp dword [eax + 0xc], edi
jl 0x40b185
mov ecx, dword [esp + 0x10d8]
mov esi, dword [esp + 0xc]
mov edx, dword [ebp + 0xc]
push edi
mov eax, dword [ecx]
mov ecx, dword [esp + 0x14]
add esi, eax
mov eax, dword [edx + 0x850]
mov edx, dword [ecx + eax]
mov ecx, dword [ebp + 8]
lea eax, [edx + edi*8 - 8]
mov dword [esp + 0x24], eax
call fcn.004012a0
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 0xc]
fld qword [eax + 0x10]
fmul qword [ecx]
inc edi
fadd qword [esi]
fstp qword [esi]
cmp edi, dword [edx + 0xc]
jle 0x40b13d
xor esi, esi
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add eax, 8
add edx, 4
cmp eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
jl 0x40b130
mov eax, dword [ebx + 0x44]
push esi
lea ecx, [esp + 0x34]
mov eax, dword [eax + 0x14]
push eax
push 2
call fcn.0044a990
mov byte [esp + 0x10e8], 1
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov ecx, dword [ebx + 0x44]
mov esi, 1
cmp dword [ecx + 0x14], esi
jl 0x40b2ae
mov edx, dword [ebp + 0xc]
mov edi, dword [esp + 0x10]
push esi
mov eax, dword [edx + 0x850]
mov edx, dword [esp + 0x884]
mov ecx, dword [eax + 8]
mov eax, dword [edx]
fld qword [ecx + esi*8 - 8]
fld st(0)
fcos
lea eax, [eax + esi*8 - 8]
fstp qword [eax]
mov ecx, dword [esp + 0x884]
fsin
mov edx, dword [ecx + 4]
lea eax, [edx + esi*8 - 8]
fstp qword [eax]
mov eax, dword [esp + 0x10dc]
mov ecx, dword [esp + 0x884]
mov edx, dword [eax]
add edi, edx
mov edx, dword [esp + 0x10]
mov eax, dword [edx + ecx]
lea ecx, [eax + esi*8 - 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 8]
call fcn.004012a0
mov ecx, ebx
call fcn.00408f40
mov edx, dword [edi]
push esi
mov dword [edi], edx
mov eax, dword [edi + 4]
mov dword [edi + 4], eax
mov ecx, dword [esp + 0x10dc]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x884]
mov edi, dword [ecx + 4]
add edi, eax
mov eax, dword [esp + 0x10]
fstp st(0)
mov ecx, dword [eax + edx]
lea edx, [ecx + esi*8 - 8]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], edx
call fcn.004012a0
mov edx, eax
mov ecx, ebx
mov dword [esp + 0x20], edx
call fcn.00408f40
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x24]
inc esi
fmul qword [eax + 8]
fmul qword [ecx]
fmul qword [0x4db760]
fadd qword [edi]
fstp qword [edi]
mov edx, dword [ebx + 0x44]
cmp esi, dword [edx + 0x14]
jle 0x40b1d4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
add eax, 8
add edx, 4
cmp eax, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edx
jl 0x40b1c3
mov ecx, ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x3ff00000
call fcn.0041c160
cmp dword [eax + 0x1c], 2
jne 0x40b364
mov eax, dword [ebx + 0x44]
mov edi, 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
cmp dword [eax + 0x14], edi
jl 0x40b364
xor eax, eax
mov dword [esp + 0xc], eax
jmp 0x40b313
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x850]
mov ecx, dword [esp + 0x880]
mov esi, dword [edx]
mov edx, dword [ecx]
add esi, eax
add eax, edx
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.00408f40
mov ecx, dword [ebp + 8]
push edi
fstp st(0)
call fcn.004012a0
fld qword [esi]
mov edx, dword [ebx + 0x44]
mov ecx, dword [esp + 0xc]
fmul qword [eax + 8]
mov eax, dword [edx + 0x14]
inc edi
add ecx, 8
cmp edi, eax
fadd qword [esp + 0x14]
mov dword [esp + 0xc], ecx
fstp qword [esp + 0x14]
jle 0x40b30f
lea eax, [esp + 0x888]
push eax
call fcn.0044b030
fmul qword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x10e8], 0
fstp qword [esp + 0x24]
call fcn.0044ab70
lea ecx, [esp + 0x888]
mov dword [esp + 0x10e8], 0xffffffff
call fcn.0044ab70
mov ecx, dword [esp + 0x10e0]
pop edi
fld qword [esp + 0x20]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8