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

Disassembly:
sub esp, 0x54
mov eax, dword [0x466498]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, dword [eax + 0x30]
mov eax, dword [esi + 0x84]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x128]
test ecx, ecx
je 0x40b003
mov eax, dword [esi + 0x90]
mov ebp, dword [esi + 0x8c]
jmp 0x40b017
mov ebp, dword [esi + 0x7c]
test ebp, ebp
jne 0x40b01f
mov ebp, dword [esi + 0x80]
test ebp, ebp
jne 0x40b01f
mov ebp, dword [esi + 0x78]
test ebp, ebp
je 0x40b417
fld dword [0x4595c0]
mov edi, dword [ebp + 0xc]
mov edx, dword [0x4595c8]
fchs
fstp dword [esp + 0x28]
fld dword [0x4595c4]
fchs
fstp dword [esp + 0x2c]
dec edi
mov dword [esp + 0x30], edx
js 0x40b338
lea ecx, [edi + edi*2]
lea ebx, [eax + ecx*4 + 4]
mov edx, dword [ebp]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x3c]
lea eax, [esp + 0x38]
push ecx
push eax
push edi
mov ecx, ebp
call dword [edx + 0x18]
fld dword [esi + 0x10]
fmul dword [ebx]
fld dword [ebx - 4]
fmul dword [esi]
mov ecx, dword [0x466498]
faddp st(1)
fld dword [esi + 0x20]
fmul dword [ebx + 4]
mov eax, dword [ecx + 0xab0]
test eax, eax
faddp st(1)
fstp dword [esp + 0x1c]
fld dword [esi + 0x14]
fmul dword [ebx]
fld dword [esi + 0x24]
fmul dword [ebx + 4]
faddp st(1)
fld dword [ebx - 4]
fmul dword [esi + 4]
faddp st(1)
fstp dword [esp + 0x20]
fld dword [ebx + 4]
fmul dword [esi + 0x28]
fld dword [esi + 0x18]
fmul dword [ebx]
faddp st(1)
fld dword [esi + 8]
fmul dword [ebx - 4]
faddp st(1)
fstp dword [esp + 0x24]
fld dword [0x4595c8]
fmul dword [esp + 0x24]
fld dword [0x4595c4]
fmul dword [esp + 0x20]
faddp st(1)
fld dword [0x4595c0]
fmul dword [esp + 0x1c]
faddp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x24]
fmul dword [esp + 0x30]
fld dword [esp + 0x20]
fmul dword [esp + 0x2c]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esp + 0x28]
faddp st(1)
fld dword [esp + 0x10]
je 0x40b14d
fcomp dword [0x453544]
fnstsw ax
test ah, 1
je 0x40b11f
mov dword [esp + 0x10], 0x3f333333
fcom dword [0x453544]
fnstsw ax
test ah, 1
je 0x40b134
fstp st(0)
fld dword [0x453544]
fadd dword [esp + 0x10]
fsub dword [0x453544]
fcom dword [0x45343c]
fnstsw ax
test ah, 0x41
jne 0x40b196
jmp 0x40b18e
fcomp dword [0x453540]
fnstsw ax
test ah, 1
je 0x40b162
mov dword [esp + 0x10], 0x3f0ccccd
fcom dword [0x453540]
fnstsw ax
test ah, 1
je 0x40b177
fstp st(0)
fld dword [0x453540]
fadd dword [esp + 0x10]
fsub dword [0x453540]
fcom dword [0x45343c]
fnstsw ax
test ah, 0x41
jne 0x40b196
fstp st(0)
fld dword [0x45343c]
fld st(0)
fmul st(1)
fmul dword [0x45353c]
call fcn.00429f60
mov ecx, dword [esi + 0x128]
test ecx, ecx
fstp st(0)
je 0x40b1d1
mov ecx, eax
mov edx, dword [ebp]
shl ecx, 8
add ecx, eax
shl ecx, 8
lea eax, [ecx + eax - 0x1000000]
mov ecx, ebp
push eax
push edi
call dword [edx + 0xc]
jmp 0x40b32c
mov ecx, dword [esi + 0xe8]
test ecx, ecx
je 0x40b1ee
mov ecx, eax
shl ecx, 8
add ecx, eax
shl ecx, 8
lea eax, [ecx + eax + 0x7f000000]
jmp 0x40b1ff
mov edx, eax
shl edx, 8
add edx, eax
shl edx, 8
lea eax, [edx + eax - 0x1000000]
mov ecx, dword [esi + 0x80]
test ecx, ecx
jne 0x40b213
mov ecx, dword [esi + 0x7c]
test ecx, ecx
jne 0x40b213
mov ecx, dword [esi + 0x78]
mov edx, dword [ecx]
push eax
push edi
call dword [edx + 0xc]
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x40b32c
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40b32c
fld dword [eax + 0x34]
fsub dword [esp + 0x34]
fld dword [eax + 0x38]
fsub dword [esp + 0x38]
mov ecx, dword [esi + 0x80]
test ecx, ecx
fstp dword [esp + 0x44]
fld dword [eax + 0x3c]
fsub dword [esp + 0x3c]
fst dword [esp + 0x48]
fmul dword [esp + 0x24]
fld dword [esp + 0x44]
fmul dword [esp + 0x20]
faddp st(1)
fld st(1)
fmul dword [esp + 0x1c]
faddp st(1)
fadd st(0), st(0)
fld st(0)
fmul dword [esp + 0x1c]
fstp dword [esp + 0x4c]
fld st(0)
fmul dword [esp + 0x20]
fstp dword [esp + 0x50]
fmul dword [esp + 0x24]
fstp dword [esp + 0x54]
fsub dword [esp + 0x4c]
fld dword [esp + 0x44]
fsub dword [esp + 0x50]
fstp dword [esp + 0x5c]
fld dword [esp + 0x48]
fsub dword [esp + 0x54]
fsubr dword [0x45343c]
fld st(0)
fmulp st(1)
fld dword [esp + 0x5c]
fmul dword [esp + 0x5c]
faddp st(1)
fld st(1)
fmul st(2)
faddp st(1)
fsqrt
fadd st(0), st(0)
fstp dword [esp + 0x10]
fdiv dword [esp + 0x10]
fld dword [esi + 0x9c]
fmul dword [0x453538]
fsubp st(1)
fadd dword [0x453450]
fmul dword [0x453450]
fstp dword [esp + 0x14]
fld dword [esi + 0xa0]
fmul dword [0x453538]
fadd dword [0x453450]
fld dword [esp + 0x5c]
fdiv dword [esp + 0x10]
fsubp st(1)
fmul dword [0x453450]
fstp dword [esp + 0x10]
je 0x40b317
mov eax, dword [ecx]
push 1
jmp 0x40b31e
mov ecx, dword [esi + 0x78]
push 0
mov eax, dword [ecx]
mov edx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x1c]
push edx
push edi
call dword [eax + 0x14]
dec edi
sub ebx, 0xc
test edi, edi
jge 0x40b052
mov eax, dword [esi + 0x128]
test eax, eax
je 0x40b417
mov ebx, dword [ebp + 0xc]
dec ebx
js 0x40b417
lea edi, [ebx + ebx*2]
shl edi, 2
mov eax, dword [esi + 0x12c]
test eax, eax
jge 0x40b38b
fild dword [esi + 0x128]
mov eax, dword [esi + 0x98]
add eax, edi
fmul dword [0x453534]
fst dword [esp + 0x10]
fmul dword [eax]
fld dword [esp + 0x10]
fmul dword [eax + 4]
fstp dword [esp + 0x20]
fld dword [esp + 0x10]
jmp 0x40b3c8
mov eax, dword [esi + 0x128]
mov ecx, 0x30c
sub ecx, eax
mov edx, dword [esi + 0x98]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
lea eax, [edx + edi]
fmul dword [0x453534]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fmul dword [eax]
fld dword [esp + 0x10]
fmul dword [eax + 4]
fstp dword [esp + 0x20]
fld dword [esp + 0x10]
fmul dword [eax + 8]
mov eax, dword [esi + 0x94]
mov edx, dword [ebp]
add eax, edi
fstp dword [esp + 0x24]
fadd dword [eax]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fadd dword [eax + 4]
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fadd dword [eax + 8]
mov ecx, dword [esp + 0x20]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push ecx
push eax
push ebx
mov ecx, ebp
call dword [edx + 4]
dec ebx
sub edi, 0xc
test ebx, ebx
jge 0x40b356
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret