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

Disassembly:
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], 0
lea eax, [edi + 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov ecx, dword [eax]
mov dword [esp + 0x38], ecx
fld dword [esp + 0x38]
mov edx, dword [eax + 4]
fmul dword [esp + 0xa0]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], edx
fld dword [esp + 0x3c]
fmul dword [esp + 0xa0]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0xd0]
test eax, eax
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fmul dword [esp + 0xa0]
fstp dword [esp + 0x40]
fadd dword [edi + 4]
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fadd dword [edi + 8]
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fadd dword [edi + 0xc]
fstp dword [esp + 0x40]
jle 0x46da6e
mov edx, dword [edi + 0xd8]
mov ecx, dword [0x6633d4]
mov eax, dword [edx + esi*4]
mov ecx, dword [ecx + 0x420]
push eax
call fcn.005ebae0
test eax, eax
je 0x46da63
mov edx, dword [eax]
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call dword [edx + 0x23c]
fld dword [esp + 0x14]
fadd dword [eax]
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fadd dword [eax + 4]
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fadd dword [eax + 8]
fstp dword [esp + 0x1c]
mov eax, dword [edi + 0xd0]
inc esi
cmp esi, eax
jl 0x46da15
fild dword [edi + 0xd0]
fld dword [esp + 0x14]
mov edx, dword [edi]
push 1
fdiv st(1)
mov ecx, edi
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fdiv st(1)
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fdiv st(1)
fstp dword [esp + 0x20]
fstp st(0)
call dword [edx + 0x94]
test eax, eax
jne 0x46dab7
mov ebx, dword [edi + 4]
mov esi, dword [edi + 0xc]
mov ebp, dword [edi + 8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], esi
jmp 0x46dac3
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
cmp dword [edi + 0xf8], 8
jne 0x46db14
mov ecx, dword [edi + 0xb8]
test ecx, ecx
je 0x46db14
mov edx, dword [edi + 0xd0]
mov eax, dword [ecx]
push edx
mov edx, dword [edi + 0xd8]
push edx
push esi
push ebx
call dword [eax + 0x130]
cmp eax, 1
jne 0x46db14
sub esp, 0xc
mov eax, dword [edi]
mov ecx, esp
mov dword [ecx], ebx
mov dword [ecx + 4], ebp
mov dword [ecx + 8], esi
mov ecx, edi
call dword [eax + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 4
fld dword [edi + 0x10]
fabs
fld dword [edi + 0x18]
fabs
fcompp
mov byte [esp + 0x13], 1
fnstsw ax
test ah, 0x41
jne 0x46db31
mov byte [esp + 0x13], 0
mov eax, dword [edi + 0xd0]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x4c], 0xffffffff
mov dword [esp + 0x44], 0x7f7fffff
jle 0x46dc61
mov ebp, 0x66bae8
mov edx, dword [0x6633d4]
mov eax, dword [edi + 0xd8]
mov ecx, dword [edx + 0x420]
mov edx, dword [eax + ebx*4]
push edx
call fcn.005ebae0
mov esi, eax
test esi, esi
je 0x46dc52
cmp byte [esp + 0x13], 1
jne 0x46db9a
mov eax, dword [esi]
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call dword [eax + 0x23c]
fld dword [eax + 8]
fsub dword [esp + 0x1c]
jmp 0x46dbb2
mov edx, dword [esi]
lea eax, [esp + 0x90]
push eax
mov ecx, esi
call dword [edx + 0x23c]
fld dword [eax]
fsub dword [esp + 0x14]
fabs
fld dword [edi + 0x118]
fmul dword [0x61b588]
fxch st(1)
fcompp
fnstsw ax
test ah, 1
je 0x46dbdd
mov ecx, dword [esi + 4]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x34]
inc ecx
add ebp, 4
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x38]
lea eax, [esp + 0x84]
push edx
mov edx, dword [esi]
push eax
lea eax, [esp + 0x74]
push eax
mov ecx, esi
call dword [edx + 0x23c]
mov ecx, eax
call fcn.005d0f40
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], eax
fld dword [esp + 0x2c]
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
fstp dword [esp + 0x20]
fld st(0)
fmulp st(1)
fadd dword [esp + 0x20]
fsqrt
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 1
je 0x46dc52
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
mov ecx, dword [esi + 4]
mov dword [esp + 0x4c], ecx
fadd dword [esp + 0x20]
fsqrt
fstp dword [esp + 0x44]
mov eax, dword [edi + 0xd0]
inc ebx
cmp ebx, eax
jl 0x46db56
mov ebx, dword [esp + 0x34]
or ebp, 0xffffffff
cmp ebx, 1
jne 0x46dc73
mov ebp, dword [0x66bae8]
test ebx, ebx
mov dword [esp + 0x30], 0x7f7fffff
jle 0x46ddb6
mov edx, dword [esp + 0x34]
mov dword [esp + 0x50], 0x7f7fffff
mov ebx, 0x66bae8
mov dword [esp + 0x48], edx
mov eax, dword [0x6633d4]
mov edx, dword [ebx]
push edx
mov ecx, dword [eax + 0x420]
call fcn.005ebae0
mov esi, eax
test esi, esi
je 0x46dda0
mov edx, dword [esi]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x70]
lea eax, [esp + 0x88]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x23c]
mov ecx, eax
call fcn.005d0f40
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x28], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x2c], eax
fld dword [esp + 0x2c]
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
fstp dword [esp + 0x20]
fld st(0)
fmulp st(1)
fadd dword [esp + 0x20]
fsqrt
fcomp dword [esp + 0x50]
fnstsw ax
test ah, 1
je 0x46dda0
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
mov edx, dword [esi]
mov ebp, dword [ebx]
lea eax, [esp + 0x90]
mov ecx, esi
fadd dword [esp + 0x20]
push eax
fsqrt
fstp dword [esp + 0x54]
call dword [edx + 0x23c]
fld dword [eax + 8]
fsub dword [esp + 0x1c]
mov edx, dword [esi]
lea eax, [esp + 0x60]
push eax
mov ecx, esi
fstp dword [esp + 0x34]
call dword [edx + 0x23c]
fld dword [eax + 8]
fsub dword [esp + 0x1c]
mov edx, dword [esi]
lea eax, [esp + 0x78]
push eax
mov ecx, esi
fmul dword [esp + 0x34]
fstp dword [esp + 0x24]
call dword [edx + 0x23c]
fld dword [eax]
fsub dword [esp + 0x14]
mov edx, dword [esi]
lea eax, [esp + 0x54]
push eax
mov ecx, esi
fstp dword [esp + 0x34]
call dword [edx + 0x23c]
fld dword [eax]
fsub dword [esp + 0x14]
fmul dword [esp + 0x30]
fadd dword [esp + 0x20]
fsqrt
fstp dword [esp + 0x30]
mov eax, dword [esp + 0x48]
add ebx, 4
dec eax
mov dword [esp + 0x48], eax
jne 0x46dc98
mov ebx, dword [esp + 0x34]
mov ecx, dword [0x6633d4]
push ebp
mov ecx, dword [ecx + 0x420]
call fcn.005ebae0
mov esi, eax
test esi, esi
je 0x46de3b
lea edx, [esp + 0x38]
lea eax, [esp + 0x54]
push edx
mov edx, dword [esi]
push eax
lea eax, [esp + 0x80]
push eax
mov ecx, esi
call dword [edx + 0x23c]
mov ecx, eax
call fcn.005d0f40
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 4]
test ebx, ebx
mov eax, dword [eax + 8]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
faddp st(1)
fsqrt
jne 0x46de55
mov ecx, dword [esi + 8]
fld dword [ecx + 0x34]
fadd st(0), st(0)
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 1
je 0x46de55
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 0x41
jne 0x46de57
mov edx, dword [0x6633d4]
mov ebp, dword [esp + 0x4c]
push ebp
mov ecx, dword [edx + 0x420]
call fcn.005ebae0
mov esi, eax
jmp 0x46de57
fstp st(0)
cmp ebp, 0xffffffff
je 0x46de96
test esi, esi
je 0x46de96
lea ecx, [edi + 0x130]
call fcn.00469c70
mov eax, dword [esi]
mov ebx, dword [edi]
lea ecx, [esp + 0x54]
push ecx
mov ecx, esi
call dword [eax + 0x23c]
mov ecx, dword [eax]
sub esp, 0xc
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [edx + 4], ecx
mov ecx, edi
mov dword [edx + 8], eax
call dword [ebx + 8]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8c
ret 4