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

Disassembly:
sub esp, 0x360
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x20]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x30], ebp
jne 0x40b630
xor esi, esi
mov dword [esp + 0x1c], esi
jmp 0x40b64c
mov ecx, dword [ebp + 0x24]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x1c], edx
mov esi, edx
mov ecx, dword [ebp + 4]
push 0x2000
mov eax, dword [ecx + 0x1d8]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + esi*2]
mov edx, dword [eax]
shl ecx, 2
push ecx
push edi
push eax
call dword [edx + 0x2c]
test eax, eax
jl 0x40bc6c
cmp esi, edi
mov dword [esp + 0x24], edi
jbe 0x40bb71
push ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], esi
jmp 0x40b690
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebp + 0x20]
add ebx, esi
push 0x3f800000
push 0
push 0
fld dword [ebx]
fstp dword [esp + 0x64]
fld dword [ebx + 8]
fmul qword [str.fffff]
push 0
push 0
push 0x3f800000
push 0
fadd qword [0x4412c8]
push 0
push 0
push 0
push 0x3f800000
fstp dword [esp + 0x88]
fld dword [ebx + 4]
push 0
push 0
push 0
push 0
fstp dword [esp + 0x9c]
push 0x3f800000
lea ecx, [esp + 0x2f0]
call fcn.0040bc80
mov edx, dword [esp + 0x58]
push 0x3f800000
fld dword [ebx + 0x1c]
push 0
push 0
push 0
mov ecx, 0x10
mov esi, eax
mov eax, dword [esp + 0x6c]
lea edi, [esp + 0x140]
push 0
push 0x3f800000
push 0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x17c], edx
mov edx, dword [ebp + 4]
push 0
push 0
push 0
fmul qword [edx + 8]
mov dword [esp + 0x190], ecx
push 0x3f800000
mov ecx, 0x10
lea esi, [esp + 0x15c]
lea edi, [esp + 0x19c]
push 0
fstp dword [esp + 0x4c]
mov dword [esp + 0x194], eax
push 0
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 0x3f800000
lea ecx, [esp + 0x330]
call fcn.0040bc80
fld dword [esp + 0x1c]
fcos
mov ecx, 0x10
mov esi, eax
lea edi, [esp + 0xb0]
rep movsd dword es:[edi], dword [esi]
fld dword [esp + 0x1c]
fsin
fld dword [ebx + 0x10]
fld st(0)
fmulp st(1)
fld dword [0x441298]
fsub st(1)
push 0x3f800000
push 0
push 0
push 0
fmul st(3)
push 0
mov ecx, 0x10
lea esi, [esp + 0xc4]
lea edi, [esp + 0x244]
fadd st(1)
push 0x3f800000
push 0
push 0
fstp dword [esp + 0xd0]
fstp st(0)
fld dword [0x441298]
fsub st(2)
fld st(0)
fmul dword [ebx + 0x10]
fmul dword [ebx + 0x14]
fstp dword [esp + 0x3c]
fld st(1)
fmul dword [ebx + 0x18]
fst dword [esp + 0x38]
fadd dword [esp + 0x3c]
fstp dword [esp + 0xd4]
fmul dword [ebx + 0x18]
fld st(0)
fmul dword [ebx + 0x10]
fstp dword [esp + 0x30]
fld st(1)
fmul dword [ebx + 0x14]
fstp dword [esp + 0x50]
fld dword [esp + 0x30]
fsub dword [esp + 0x50]
fstp dword [esp + 0xd8]
fld dword [esp + 0x3c]
fsub dword [esp + 0x38]
fstp dword [esp + 0xe0]
fld dword [ebx + 0x14]
fld st(0)
fmulp st(1)
fld dword [0x441298]
fsub st(1)
fmul st(4)
fadd st(1)
fstp dword [esp + 0xe4]
fstp st(0)
fmul dword [ebx + 0x14]
fstp dword [esp + 0x38]
fmul dword [ebx + 0x10]
fld st(0)
fadd dword [esp + 0x38]
fstp dword [esp + 0xe8]
fld dword [esp + 0x50]
fadd dword [esp + 0x30]
fstp dword [esp + 0xf0]
fld dword [esp + 0x38]
fsub st(1)
fstp dword [esp + 0xf4]
fstp st(0)
fld dword [ebx + 0x18]
fld st(0)
fmulp st(1)
fld dword [0x441298]
fsub st(1)
fmul st(2)
fadd st(1)
fstp dword [esp + 0xf8]
rep movsd dword es:[edi], dword [esi]
fstp st(0)
fstp st(0)
fld dword [ebx + 0xc]
fadd st(0), st(0)
fst dword [esp + 0x58]
fst dword [esp + 0x5c]
fstp dword [esp + 0x60]
push 0
push 0
push 0x3f800000
push 0
push 0
push 0
push 0
push 0x3f800000
lea ecx, [esp + 0x370]
call fcn.0040bc80
mov edx, dword [esp + 0x40]
mov ecx, 0x10
mov esi, eax
mov eax, dword [esp + 0x38]
lea edi, [esp + 0xf0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x3c]
lea esi, [esp + 0xf0]
mov dword [esp + 0x104], ecx
mov ecx, 0x10
lea edi, [esp + 0x1f0]
mov dword [esp + 0xf0], eax
mov dword [esp + 0x118], edx
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea esi, [esp + 0x230]
lea ebp, [esp + edi + 0x270]
mov dword [esp + 0x10], 4
fld dword [0x441280]
lea ecx, [esp + edi + 0x1f0]
mov eax, esi
mov edx, 4
fld dword [ecx]
fmul dword [eax]
add eax, 0x10
add ecx, 4
dec edx
faddp st(1)
jne 0x40b954
fstp dword [ebp]
mov eax, dword [esp + 0x10]
add esi, 4
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x40b940
add edi, 0x10
cmp edi, 0x40
jl 0x40b92a
mov ecx, 0x10
lea esi, [esp + 0x270]
lea edi, [esp + 0x1b0]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
lea esi, [esp + 0x170]
lea ebp, [esp + edi + 0x70]
mov dword [esp + 0x10], 4
fld dword [0x441280]
lea ecx, [esp + edi + 0x1b0]
mov eax, esi
mov edx, 4
fld dword [ecx]
fmul dword [eax]
add eax, 0x10
add ecx, 4
dec edx
faddp st(1)
jne 0x40b9bd
fstp dword [ebp]
mov eax, dword [esp + 0x10]
add esi, 4
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x40b9a9
add edi, 0x10
cmp edi, 0x40
jl 0x40b996
fld dword [ebx + 0x24]
fmul qword [0x441378]
call fcn.00434e70
mov ecx, eax
or eax, 0xffffff00
and ecx, 0xff
shl eax, 8
or eax, ecx
shl eax, 8
or eax, ecx
mov ecx, 0x44834c
mov edi, eax
mov edx, dword [esp + 0x28]
mov esi, 3
mov eax, edx
shl eax, 5
add edx, esi
mov dword [esp + 0x28], edx
fld dword [ecx - 4]
fld dword [ecx]
fld dword [ecx + 4]
fld dword [esp + 0x70]
fmul st(3)
fld dword [esp + 0x90]
fmul st(2)
mov edx, dword [ecx + 8]
add ecx, 0x14
mov dword [esp + 0x54], edx
mov edx, dword [ecx - 8]
faddp st(1)
fld dword [esp + 0x80]
fmul st(3)
mov dword [esp + 0x50], edx
mov edx, dword [esp + 0x14]
add edx, eax
add eax, 0x20
faddp st(1)
dec esi
fadd dword [esp + 0xa0]
fstp dword [esp + 0x64]
fld dword [esp + 0x74]
fmul st(3)
fld dword [esp + 0x84]
fmul st(3)
faddp st(1)
fld dword [esp + 0x94]
fmul st(2)
faddp st(1)
fadd dword [esp + 0xa4]
fstp dword [esp + 0x68]
fld dword [esp + 0x78]
fmulp st(3)
fld dword [esp + 0x88]
fmul st(2)
faddp st(3)
fld dword [esp + 0x98]
fmul st(1)
faddp st(3)
fxch st(2)
fadd dword [esp + 0xa8]
fxch st(2)
fstp st(0)
fstp st(0)
fld dword [esp + 0x64]
fstp dword [esp + 0x44]
fld dword [esp + 0x68]
mov ebx, dword [esp + 0x44]
fstp dword [esp + 0x48]
mov dword [edx], ebx
mov ebx, dword [esp + 0x48]
fstp dword [esp + 0x4c]
fld dword [esp + 0x54]
fmul qword [0x4412e8]
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x4c]
mov dword [edx + 8], ebx
mov edx, dword [esp + 0x14]
mov dword [eax + edx - 0x14], edi
mov edx, dword [esp + 0x14]
fstp dword [eax + edx - 0x10]
fld dword [esp + 0x50]
fmul qword [0x4412e8]
mov edx, dword [esp + 0x14]
fstp dword [eax + edx - 0xc]
mov edx, dword [esp + 0x14]
fld dword [eax + edx - 0x10]
fmul dword [0x441390]
fstp dword [eax + edx - 8]
mov edx, dword [esp + 0x14]
fld dword [eax + edx - 0x10]
fmul dword [0x441390]
fstp dword [eax + edx - 4]
jne 0x40ba28
cmp ecx, 0x44843c
jl 0x40ba14
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
add ecx, 0x28
dec eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], eax
jne 0x40b68c
mov esi, dword [esp + 0x20]
mov ebp, dword [esp + 0x34]
pop ebx
mov eax, dword [ebp + 4]
mov eax, dword [eax + 0x1d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov edx, dword [ebp + 4]
push 5
push 1
push 1
mov eax, dword [edx + 0x1d4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xfc]
mov edx, dword [ebp + 4]
push 4
push 4
push 1
mov eax, dword [edx + 0x1d4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xfc]
mov edx, dword [ebp + 4]
push 1
push 0x1b
mov eax, dword [edx + 0x1d4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov edx, dword [ebp + 4]
push 2
push 0x13
mov eax, dword [edx + 0x1d4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov edx, dword [ebp + 4]
push 2
push 0x14
mov eax, dword [edx + 0x1d4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov edx, dword [ebp + 4]
push 1
push 0x16
mov eax, dword [edx + 0x1d4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov edx, dword [ebp + 4]
push 0
push 7
mov eax, dword [edx + 0x1d4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc8]
mov edx, dword [ebp + 4]
mov eax, dword [edx + 0x1d4]
mov edx, dword [ebp + 0x10]
push edx
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0xf4]
mov eax, dword [ebp + 4]
mov edx, dword [ebp + 0x14]
push edx
push 1
mov eax, dword [eax + 0x1d4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xf4]
mov eax, dword [ebp + 4]
lea edx, [esi*4]
push edx
push 0
mov eax, dword [eax + 0x1d4]
push 4
push eax
mov ecx, dword [eax]
call dword [ecx + 0x118]
pop edi
pop esi
pop ebp
add esp, 0x360
ret